Skip to content

Commit

Permalink
adding the "between" specification to make queries easier
Browse files Browse the repository at this point in the history
  • Loading branch information
henrique.campos committed Dec 17, 2024
1 parent 1aac75c commit 3f423eb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,15 @@ public interface CriteriaBuilder {
*/
<Y extends Comparable<? super Y>> Predicate between(Expression<? extends Y> v, Y x, Y y);

/**
* Create a predicate for testing whether the first argument is
* between the second and third arguments in value.
* @param v value
* @param x expression
* @param y expression
* @return between predicate
*/
<Y extends Comparable<? super Y>> Predicate between(Y v, Expression<? extends Y> x, Expression<? extends Y> y);

//comparisons for numeric operands:

Expand Down

0 comments on commit 3f423eb

Please sign in to comment.