About collection

51-60 of 200Refresh
Forum
15

Navigation through Path to evaluate collection

Hello, I need to evaluate a field ("identifier") which is situated in a collection, within an entity. As stated in the documentation it is not possible to navigate there with the dot operator since its a collection. Is it there a way to evaluate this field? Here is the query, the entity
Forum
15

Query to find object from element of a contained collection

I have an OrderData class, containing an OrderItemData collection, i would like to find OrderData elements by OrderData.items.itemId. I cant get a proper query with MEMBER OF or IN. Does ... with a collection (e.g. ArrayList). You may also need to use a multi variable query with JOIN. Thank
JPA Doc
14

javax.persistence.criteria.MapJoin

> The MapJoin interface is the type of the result of joining to a collection over an association or element collection that has been specified as a java.util.Map. Since: JPA 2.0 Selection alias(String name ... > attribute) Create a fetch join to the specified collection-valued attribute using an inner join. Create
JPA Doc
14

javax.persistence.criteria.SetJoin

interface is the type of the result of joining to a collection over an association or element collection that has been specified as a java.util.Set. Since: JPA 2.0 Selection alias(String name ... a fetch join to the specified collection-valued attribute using an inner join. Create a fetch join
Manual
14

Database Schema Evolution

any date type to any date type. From any collection or array type to any collection or array type, as ... collection or array that can contain that object as en element. From any map type to any map type as
Manual
14

Deleting JPA Entity Objects

can be referenced by a collection field): @Entity class Employee { : @OneToOne ... objects. Orphan removal can also be set for collection and map fields. For example: @Entity class ... ; : } In this case, removal of an Address object from the collection leads to automatic removal
Manual
14

Shared (L2) Entity Cache

Every EntityManager owns a persistence context, which is a collection of all the entity objects ... and primary key: em.find(MyEntity2.class, Long.valueOf(1),      Collections.Collections.singletonMap(         "javax.persistence.cache
Manual
14

WHERE clause (JPQL / Criteria API)

variable. Before passing these Country objects to the SELECT clause for collecting as query results ... and then collected as query results. WHERE Predicate and Indexes Formally, the WHERE clause functions as ... , relational operators, logical operators) and functions (numeric functions, string functions, collection
JPA Doc
14

javax.persistence.criteria.PluralJoin

to all collection types. It is not intended to be used directly in query construction. Since: JPA 2.0 ... ( PluralAttribute attribute) Create a fetch join to the specified collection-valued attribute using an inner join. Create a fetch join to the specified collection-valued attribute using an inner join
Forum
14

@ElementCollection query returning extra result per element in collection

Hi,   I'm having a hard time narrowing down an issue that only became apparent with in the UI. The issue is that, I'm getting repeated results of the owning entity of an '@ElementCollection'. The entity returned is repeated for every element in the collection. Switching back to EclipseLink