About CriteriaQuery

61-70 of 85Refresh
Forum
2

Criteria query error: Unexpected query token

= entityManager.getCriteriaBuilder(); CriteriaQuery c = qb.createQuery(aClass ... ) {      CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();      CriteriaQuery q
Forum
2

Error using query with MAX() function

.getTransaction().begin(); CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery q = cb ... "); Expression me = cb.max(c); CriteriaQuery s = q.select(me); Predicate predicate = cb
Forum
2

Help with 'not like/lower' query

; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery ... .getCriteriaBuilder();   CriteriaQuery c = builder.createQuery(MyEntity.class);   ParameterExpression
Issue
2

Issue with TYPE expression in Criteria API

.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence ... ();         CriteriaQuery cq = cb.createQuery();         Root e = cq.from(Customer
Forum
2

Like fails if both underscore and percent are used

.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence ... (); CriteriaQuery query = builder.createQuery(StringHolder.class); Root
Issue
2

NPE at com.objectdb.jpa.JpaQuery.getResultList

(); CriteriaQuery query = cb.createQuery(); Root fromMomentPayload = query.from ... ();             CriteriaQuery query = cb.createQuery();             Root fromMomentPayload  = query.from
Forum
2

Problem with Criteria Querys

.CriteriaQuery; import javax.persistence.criteria.ParameterExpression; import javax.persistence.criteria ... ();   CriteriaQuery q = cb.createQuery(DataObject.class);   Root d  = q.from
Issue
2

Strange Error with Criteria API and Sorting

.CriteriaQuery; import javax.persistence.criteria.Expression; import javax.persistence.criteria ... .getCriteriaBuilder();   CriteriaQuery query = cb.createQuery(TestEntity.class);   Root
Forum
2

TYPE Expression

();         CriteriaBuilder cb = em.getCriteriaBuilder();         CriteriaQuery cq = cb ... the same error: private void applyFilters(Root from, CriteriaQuery query, CriteriaBuilder
Issue
1

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

{ CriteriaQuery cq = em.getCriteriaBuilder().createQuery(); cq.select(cq.from(Chart.class