Home » Search

About predicate

131-140 of 147 Refresh
JPA Doc
4

value(value)

Method javax.persistence.criteria.CriteriaBuilder.In In value(   T value ) Add to list of values to be tested against. Parameters: value - value Returns: in predicate Since: JPA 2.0
JPA Doc
4

value(value)

Method javax.persistence.criteria.CriteriaBuilder.In In value(   Expression  value ) Add to list of values to be tested against. Parameters: value - expression Returns: in predicate Since: JPA 2.0
Forum
4

CriteriaQuery using isNotNull with other conditions results in InternalException

< Predicate> predicates = new ArrayList< Predicate>(); predicates.add(builder.equal(root.get("to"), identityObject)); predicates.add(builder.equal(root.get("relationshipType"), relationshipTypeObject)); predicates.add(builder.isNotNull(root.get("name"))); criteria
Forum
4

Help with 'not like/lower' query

= root.get(property.getFieldName()); Predicate predicate; if(property.getOperator().equals(Operator.LIKE)){ predicate = criteriaBuilder.like(criteriaBuilder.lower(path), stringProp ... .getOperator().equals(Operator.NOT_LIKE)){ predicate = criteriaBuilder.notLike(criteriaBuilder.lower(path
Forum
3

How to add minutes to a Date with JPA2

); Expression dateDelay = cb.diff(currentDate, delayMinute); Predicate ... , Expression ) predicate = cb.and( predicate ... ); Predicate predicate = cb.lessThan(dateDelay,currentDate); This is the function DB create
Forum
2

Error using query with MAX() function

"); Expression me = cb.max(c); CriteriaQuery s = q.select(me); Predicate predicate = cb.isNotNull(c); q.where(predicate); TypedQuery tq = em.createQuery(s); Date mDate
Forum
2

IN expression in a Criteria Query

root = q.from(MyEntity.class);         Path value = root.get("str");         Predicate predicate = value.in("a", "c", "e");         q.where( predicate);         q.select(root
Forum
2

Query in JPA2 with LEFT JOIN on INNER JOIN

)).getSelection(); selections[0]=actionDescriptionSelection; Predicate masterPredicate = cb.conjunction(); Predicate predicateOnPath = cb.equal(root.get(Action_.path).get(Path_.id), idPAth ... ; Predicate predicateOnProfile = cb.equal(actionJoinActionProfile.get(ActionProfile_.id
Forum
2

IMK Stall with certain query

(OrderData.class); Predicate p1 = cb.like(cb.lower(order.get("buyerId")), param); Predicate p2 = cb
Forum
2

JPA CriteriaQuery -- Iterate Expression<List<Object>>

(String.class); //pseudo code(i think i need something like this here) Predicate myPred ... "), searchString ) //pseuso code (i thin i need to check my predicate here?) builder