ObjectDB ObjectDB

Internal Website Search

121-130 of 148 resultsRefresh
24

Criteria Query results in a NoResultException instead of returning object

); criteria.select(root); List<Predicate> predicates = new ArrayList<Predicate>(); predicates.add(builder.equal(         root.get(identityNameProp.getName()), obj.getName()));     criteria.where(predicates.toArray(new Predicate[predicates.size()])); return em.createQuery
24

Problem witch CriteriaBuilder isMember(..)

<Container> root = ... Testclass searchobject = new Testclass(1,2); Predicate predicate = cb.isMember ... = "testtext"; Predicate predicate = cb.isMember(searchobject,root.<Collection<String>>get("testlist2")); works as expected. the equal-query Testclass searchobject = new Testclass(1,2); Predicate
20

java.sql.Date equals comparison not working with CriteriaAPI

= ...; Root<MyEntity> root = ...; java.sql.Date myDate = ...; Predicate predicate = builder.equal ... method of the created predicate yields in something like: $1.eintritt=2013-11-01 whereas as seen in ... );         Predicate predicate = cb.equal(root.get("date"), cb.literal(myDate));         q.where(predicate
19

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
5

and(x, y)

Method javax.persistence.criteria.CriteriaBuilder Predicate and( Expression<T> x, Expression<T> y ) Create a conjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Returns: and predicate Since: JPA 2.0
5

or(x, y)

Method javax.persistence.criteria.CriteriaBuilder Predicate or( Expression<T> x, Expression<T> y ) Create a disjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Returns: or predicate Since: JPA 2.0
5

and(x, y)

Method javax.persistence.criteria.CriteriaBuilder Predicate and( Expression<Boolean> x, Expression<Boolean> y ) Create a conjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Returns: and predicate Since: JPA 2.0
5

in(expression)

Method javax.persistence.criteria.CriteriaBuilder In<T> in( Expression<?> expression ) Create predicate to test whether given expression is contained in a list of values. Parameters: expression - to be tested against list of values Returns: in predicate Since: JPA 2.0
5

disjunction()

Method javax.persistence.criteria.CriteriaBuilder Predicate disjunction() Create a disjunction (with zero disjuncts). A disjunction with zero disjuncts is false. Returns: or predicate Since: JPA 2.0
3

javax.persistence.TupleElement

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