Home » Search

About Criteria API

61-70 of 200Refresh
JPA Doc
16

javax.persistence.criteria.CriteriaBuilder.SimpleCase

javax.persistence.criteria Interface CriteriaBuilder.SimpleCase Superinterfaces: Expression, Selection, TupleElement Interface used to build simple case expressions. Case conditions are evaluated in the order in which they are specified. Since: JPA 2.0 Selection alias(String name
JPA Doc
16

javax.persistence.criteria.Fetch

javax.persistence.criteria Interface Fetch Superinterfaces: FetchParent Represents a join-fetched association or attribute. Since: JPA 2.0 Fetch fetch(String attributeName) Create a fetch join to the specified attribute using an inner join. Create a fetch join to the specified
JPA Doc
16

javax.persistence.criteria.FetchParent

javax.persistence.criteria Interface FetchParent Subinterfaces: CollectionJoin, Fetch, From, Join, ListJoin, MapJoin, PluralJoin, Root, SetJoin Represents an element of the from clause which may function as the parent of Fetches. Since: JPA 2.0 Fetch fetch(String attributeName) Create
JPA Doc
16

javax.persistence.criteria.Subquery

javax.persistence.criteria Interface Subquery Superinterfaces: AbstractQuery, Expression, Selection, TupleElement The Subquery interface defines functionality that is specific to subqueries. A subquery has an expression as its selection item. Since: JPA 2.0 Selection alias(String
Forum
13

IN expression in a Criteria Query

is with Criteria Language. This code: In inExpression = cb.in(root.get(Computer ... is one of them. Regarding the criteria query, it is unclear where exactly the exception is thrown ... (HND.java:132) at java.lang.Thread.run(Unknown Source) Regarding the criteria query issue
Forum
13

Criteria Query results in a NoResultException instead of returning object

(); CriteriaQuery criteria = builder.createQuery(identityClass); Root root = criteria.from(identityClass); criteria.select(root); List predicates = new ArrayListcriteria.where(predicates.toArray(new Predicate[predicates.size()])); return em.createQuery
Forum
13

Threading Problem (maybe with Criteria)

", AdvoluxUID.class); instead of Criteria API CriteriaBuilder cbuilder = manager.getCriteriaBuilder ... . 100000) the test opens the Database, start some queries with criteria in several threads (maybe 10 ... (ManagedTypeImpl.java:199) at com.objectdb.jpa.criteria.PathImpl.get(PathImpl.java:114) at com.objectdb
Forum
12

Multi selection and distinct in a criteria query

hi, How can I realize multi selection with the criteria api concerning distinct? I.e. doing something like SELECT DISTINCT $1, $2 wouldn't work because I do only have something like criteria.multiselect(...) and nothing like builder.distinct(selection) so that I could do something like criteria
Issue
12

Internal exception: NPE on criteria query with IN clause and empty collection

already narrowed the cause to the fact that I use JPA criteria query API, and I pass an empty collection to IN ... to see support for static metamodel in ObjectDB implementation of both JPA criteria API and JDO typed queries
Forum
12

Criteria query error: Unexpected query token

is expected) A query with no SELECT may be valid in Hibernate HQL but not in JPQL and JPA Criteria API. My apologies, in my eagerness to test I think I need to do an audit on all criteria queries. Works ... however. Is there anything glaringly wrong with my code I'm failing to see? Or is Criteria a W.I.P?   Cheers