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 ...


persisting object with long[][] arrays of array

Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit(); Here is the object: ... 11:56 A long[][] array is represented in Java as an array of arrays. new long[100000][1] is actually one long array of ...



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 ...


not possible to add an existing object to an array via explorer

when trying to add an existing object via context menu/add existing object an entering the id the attached message appears Bug Version: 1.04 Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...


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 user errors that cannot be retried.(Exception of JDO)