ObjectDB ObjectDB

Internal Website Search

121-130 of 149 resultsRefresh
25

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
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<Boolean> x, Expression<Boolean> y ) Create a disjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Returns: or predicate Since: JPA 2.0
5

not(restriction)

Method javax.persistence.criteria.CriteriaBuilder Predicate not( Expression<Boolean> restriction ) Create a negation of the given restriction. Parameters: restriction - restriction expression Returns: not predicate Since: JPA 2.0
5

conjunction()

Method javax.persistence.criteria.CriteriaBuilder Predicate conjunction() Create a conjunction (with zero conjuncts). A conjunction with zero conjuncts is true. Returns: and predicate Since: JPA 2.0
3

value(value)

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

value(value)

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

javax.persistence.criteria.Selection

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

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