v2.16.0
Changelog:
- Introduced
EqualDay
specification which allows finding all records within particular date (day), ignoring time. - Added ability to set custom
Locale
during resolver registration:This matters for case-insensitive specifications (@Override public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) { argumentResolvers.add(new SpecificationArgumentResolver(new Locale("pl", "PL"))); // pl_PL will be used as the default locale }
EqualIgnoreCase
,NotEqualIgnoreCase
,LikeIgnoreCase
,StartingWithIgnoreCase
andEndingWithIgnoreCase
) which used system default locale in previous versions of the library. If locale is not provided, then system default will be used (exactly as in the previous version). - Added ability to set custom
Locale
in@Spec.config
(this overrides the global default mentioned above):@Spec(path = "name", spec = EqualIgnoreCase.class, config = "tr_TR")
- Introduced new case-insensitive specification
NotLikeIgnoreCase
that works in similar way asLikeIgnoreCase
but is its negation. - introduced
missingPathVarPolicy
to@Spec
annotation with available values:IGNORE
andEXCEPTION
(default). New policy is intended to configure behaviour on missing path variable.- for more details please check out section
Support for multiple paths with path variables
inREADME.md
.
- for more details please check out section
- additional Javadocs