Class SpecificationBuilder<T extends org.springframework.data.jpa.domain.Specification>

java.lang.Object
net.kaczmarzyk.spring.data.jpa.utils.SpecificationBuilder<T>

public final class SpecificationBuilder<T extends org.springframework.data.jpa.domain.Specification> extends Object
SpecificationBuilder allows creating specification apart from web layer. It is recommended to use builder methods that corresponding to the type of argument passed to specification.
  • params = <args> => withParam(<argName>, <values...>), single param argument can provide multiple values
  • pathVars = <args> => withPathVar(<argName>, <value>), single pathVar argument can provide single value
  • headers = <args> => withHeader(<argName>, <value>), single header argument can provide single value
Author:
Jakub Radlica, Kacper Leśniak (Tratif sp. z o.o.)