About array


SELECT clause (JPQL / Criteria API)

Explains how to use the SELECT clause and projections in a JPA/JPQL query.... length of each result Object[] element is 2. The first array cell contains the country name ( c.name ) and the second array cell contains the capital city name ( c.capital.name ). The ...



Create an array-valued selection item.(Method of javax.persistence.criteria.CriteriaBuilder)


Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: ... Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: ... It seems as a problem with persistent array fields that are defined using generics. Generics in definition of ...


Query by array element

Hello, I have a class as follows: @Entity public class MyEntity {     boolean properties[]= new boolean[1024]; } I would like to query objects with feature '42': select me from MyEntity me where me.properties[42]=true Is it possible? Thank you! ... You can implement a method in MyEntity that wraps the array access operation and then use that method in the query. It is supported ...


Entity Update - Is the documentation up to date?

I'm working on my first ObjectDB project, and I just went back and reviewed some of the documentation.  Turns out I've been doing two things that http://www.objectdb.com/java/jpa/persistence/update suggests should not work. First, I've been modifying managed entities from outside an active transaction.  If I subsequently begin and commit a transaction, all my changes seem to be merged automatically. ... be merged automatically. Second, I'm using an array of entities inside another entity, and setting the elements of that array without calling JDOHelper.makeDirty.  These changes are also ...



This class represents optimistic verification failures.(Exception of JDO)



PersistenceManager is the primary interface for JDO-aware application components.(Interface of JDO)



This class represents exceptions caused by the use of optional features not supported by the JDO implementation.(Exception of JDO)



This class represents user errors that cannot be retried.(Exception of JDO)



This is the base class for exceptions that can be retried.(Exception of JDO)