Skip to content

SpecBuilder

Fagner Lima edited this page Aug 24, 2020 · 1 revision

The SpecBuilder build Specifications using filter classes with Spec annotations. The filter class requires, at least, the SpecEntity annotation indicating the entity class.

@SpecEntity(Task.class)
public class TaskFilter implements Serializable {
  // ...
}

The properties of the filter will be used by SpecBuilder to build the Specification. All of the properties require getters and setters. By default, the property will result a single condition with the "equal operator", but you can custom the conditions with the Spec annotations.

Clone this wiki locally