About expression

api-jpa

in(values)

Create a predicate to test whether the expression is a member of the collection.(Method of javax.persistence.criteria.Expression<T>)

 
api-jpa

in(values)

Create a predicate to test whether the expression is a member of the argument list.(Method of javax.persistence.criteria.Expression)

 
forum_thread

How to add minutes to a Date with JPA2

Hi,  I have to sum to a date of minutes, and check the date obtained is greater than the current date. My idea is as follows: Calendar currentTime = Calendar.getInstance(); Date currenteDate = currentTime.getTime(); Expression<Date> dateCapture = root.get(Counter_.dateCapture); Expression<Integer> samplingPeriod = root.get(Counter_.samplingPeriod); Expression<Integer> delayMinutes  = cb.prod(samplingPeriod,3); //minutes to be added ... = currentTime . getTime ( ) ; Expression<Date> dateCapture = root. get ( Counter_. dateCapture ) ;   Expression<Integer> samplingPeriod = root. get ( Counter_. ...

 
api-jpa

where(restriction)

Modify the query to restrict the query result according to the specified boolean expression.(Method of javax.persistence.criteria.CriteriaQuery)

 
api-jpa

like(x, pattern)

Create a predicate for testing whether the expression satisfies the given pattern.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

diff(x, y)

Create an expression that returns the difference between its arguments.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

quot(x, y)

Create an expression that returns the quotient of its arguments.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

between(v, x, y)

Create a predicate for testing whether the first argument is between the second and third arguments in value.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

between(v, x, y)

Create a predicate for testing whether the first argument is between the second and third arguments in value.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

desc(x)

Create an ordering by the descending value of the expression.(Method of javax.persistence.criteria.CriteriaBuilder)