Home » Search

About collection

1-10 of 200Refresh
Manual
222

Collections in JPQL and Criteria Queries

Collections may appear in JPQL queries: as parameters - when collections are assigned as arguments. as path expressions - in navigation to persistent collection fields. IS [NOT] EMPTY The IS [NOT] EMPTY operator checks whether a specified collection is empty or not. For example: c.languages
Manual
72

JPA Persistable Types

, Date and Math types. Multi value types - Collections, Maps and Arrays. Miscellaneous types: Enum types ... types are persistable: Collection types from package java.util: ArrayList, Vector, Stack, LinkedList ... ) collection and map types are supported, as long as their values (i.e. elements in collections
Manual
53

JPA Query Expressions (JPQL / Criteria)

: =, <>, <, <=,>, >=, IS [NOT] NULL, [NOT] BETWEEN, including Collection operators: [NOT] IN, IS [NOT] EMPTY, [NOT ... expressions (currentDate, currentTime, currentTimestamp). Collection expressions (isEmpty, isNotEmpty
JPA Doc
46

get(collection)

Method javax.persistence.criteria.Path Expression get(   PluralAttribute collection ) Create a path corresponding to the referenced collection-valued attribute. Parameters: collection - collection-valued attribute Returns: expression corresponding to the referenced attribute Since: JPA 2.0
JPA Doc
46

isMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element expression collection - expression Returns: is-member predicate Since: JPA 2.0
JPA Doc
46

isMember(elem, collection)

Method javax.persistence.criteria.CriteriaBuilder Predicate isMember(   E elem,   Expression collection ) Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element collection - expression Returns: is-member predicate Since: JPA 2.0
JPA Doc
46

isMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element expression collection - expression Returns: is-member predicate Since: JPA 2.0
JPA Doc
46

isNotMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element expression collection - expression Returns: is-not-member predicate Since: JPA 2.0
JPA Doc
46

isNotMember(elem, collection)

Method javax.persistence.criteria.CriteriaBuilder Predicate isNotMember(   E elem,   Expression collection ) Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element collection - expression Returns: is-not-member predicate Since: JPA 2.0
JPA Doc
46

isNotMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element expression collection - expression Returns: is-not-member predicate Since: JPA 2.0