Skip to content

SpecBetween

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

Used for between conditions.

Params:

  • left: the left property in the condition;
  • right: the right property in the condition.

Example:

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

  @SpecBetween(left = "period.startDate", right = "period.endDate")
  private LocalDate date;

  // getters and setters
}

Clone this wiki locally