ObjectDB ObjectDB

Internal Website Search

131-140 of 149 resultsRefresh

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

Help with 'not like/lower' query

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

OR not working with isNull

Given the following: Predicate isOwnedByUser = cb.equal(root.get("owner").get("id"), userId); Predicate ownerIsNull = cb.isNull(root.get("owner")); Predicate ownerMatchesOrIsNull = cb.or(ownerIsNull, isOwnedByUser); The isNull predicate will only match records when NOT inside the OR predicate

How to add minutes to a Date with JPA2

); Predicate predicateCounterNotUpdate = cb.greaterThan(dateCapture, dateDelay); //is not applicable for the arguments Expression<Date>, Expression<capture#20-of ? extends Number>) predicate = cb.and(predicate, predicateCounterNotUpdate); faber Faber This is an interesting question. It is unclear

Error using query with MAX() function

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

IN expression in a Criteria Query

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

Query in JPA2 with LEFT JOIN on INNER JOIN

.get(Action_.description)).getSelection(); selections[0]=actionDescriptionSelection; Predicate masterPredicate = cb.conjunction(); Predicate predicateOnPath = cb.equal(root.get(Action_.path ... selections[i+1]=selection; Predicate predicateOnProfile = cb.equal(actionJoinActionProfile

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

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

IMK Stall with certain query

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


javax.persistence Interface TupleElement<X> Subinterfaces: CollectionJoin, CompoundSelection, Case, Coalesce, In, SimpleCase, Expression, From, Join, ListJoin, MapJoin, ParameterExpression, Path, PluralJoin, Predicate, Root, Selection, SetJoin, Subquery The TupleElement interface defines an element

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support