Skip to content

v2.16.0

Compare
Choose a tag to compare
@tkaczmarzyk tkaczmarzyk released this 05 Jan 16:14
· 40 commits to master since this release

Changelog:

  • Introduced EqualDay specification which allows finding all records within particular date (day), ignoring time.
  • Added ability to set custom Locale during resolver registration:
    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
        argumentResolvers.add(new SpecificationArgumentResolver(new Locale("pl", "PL"))); // pl_PL will be used as the default locale
    }
    This matters for case-insensitive specifications (EqualIgnoreCase, NotEqualIgnoreCase, LikeIgnoreCase, StartingWithIgnoreCase and EndingWithIgnoreCase) 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 as LikeIgnoreCase but is its negation.
  • introduced missingPathVarPolicy to @Spec annotation with available values: IGNORE and EXCEPTION (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 in README.md.
  • additional Javadocs