About collection

manual

Collections in JPQL and Criteria Queries

Shows how collections and maps can be used in JPQL queries.... as  path expressions - in navigation to persistent collection fields. This page covers the following topics: ... [OF] [NOT] IN Criteria Query Collection Expressions IS [NOT] EMPTY The IS ...

 
manual

JPA Query Expressions (JPQL / Criteria)

Describes JPA query (JPQL / Criteria API) expressions (literals, operators and functions).... IS [NOT] NULL, [NOT] BETWEEN, including  Collection operators: [NOT] IN, IS [NOT] EMPTY, [NOT] MEMBER [OF] ... See JavaDoc Reference Page... ). Collection expressions  ( isEmpty isEmpty(collection) ...

 
manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... multi value types are persistable: Collection types from package java.util : ArrayList , Vector , Stack ... ) and non generic (e.g. ArrayList ) collection and map types are supported, as long as their values (i.e. elements ... of persistable types. In addition to the collection and map classes that are fully supported by ObjectDB, any other ...

 
api-jpa

javax.persistence.ElementCollection

Defines a collection of instances of a basic type or embeddable class.(Annotation of JPA)

 
api-jdo

getObjectsById(oids, validate)

Return the objects with the given oids.(Method of javax.jdo.PersistenceManager)

 
manual

[ODB1] Chapter 7 - JDOQL Queries

Explains how to use JDOQL, the Java/JDO Query Language.... the following three components: A candidate collection containing persistent objects (usually an Extent ) ... The query result is a subset of objects from the candidate collection that contains only the instances of the candidate class satisfying ...

 
forum_thread

Using Scala collections with ObjectDB

Hi, I cannot see that it is possible to make scala collection classes persistable within ObjectDB. Am I missing something or must  ObjectDB Software Ltd do a specific incorporation of the scala.collection._  api for it to work ? (http://www.scala-lang.org/docu/files/collections-api/collections.html)   /Peter   ... Hi, I cannot see that it is possible to make scala collection classes persistable within ObjectDB. Am I missing something or ... Software Ltd do a specific incorporation of the scala.collection._  api for it to work ...

 
forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: ... use JOIN to define a variable that will iterate over the collection elements. This specific query should be rewritten as ... is thrown on attempt to use the new navigation from collection syntax: Navigation from ... :name" 2. Can this also work if the objects in the collection are marked @Embedded instead of @Entity? Thanks! ...

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid ... I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking ... of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in ...

 
api-jpa

isNotEmpty(collection)

Create a predicate that tests whether a collection is not empty.(Method of javax.persistence.criteria.CriteriaBuilder)