About fields

forum_thread

Problem with Composite indices

Hi, I want to realize the following: I have 2 classes, one Client class which looks like: public class Client { @Index (unique = "true") private String name; } and a User class which looks like: #1 2016-01-13 13:00 Hi, I want to realize the following: I have 2 classes, one Client class which looks like: public ...

 
forum_thread

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @Embeddable public class PhoneNumber implements Serializable {     int countryCode;     long number;   Which is a part of Customer object: ... on getSingleResult PhoneNumber contains exactly 2 fields. So I'm sure that both objects are same. What am I doing ...

 
forum_thread

Query fails with numerical values > 2^31

Hi ! I'm trying to execute the following query (from Java-code, also tried ObjectDB Explorer) delete from DataRecord p where p.TimeOfDeletion < 4147483648 This fails with "invalid numerical literal". The field p.TimeOfDeletion is of type long. As far as I know, the maximum value greater than 2^31 (Oracle: "The long data type is a 64-bit two's complement integer.") #1 2014-09-12 11:56 Hi ! I'm trying to execute the following query (from Java-code, also tried ObjectDB Explorer) ...

 
api-jpa

MapKeyColumn.name

(Optional) The name of the map key column.(Annotation Element of javax.persistence.MapKeyColumn)

 
forum_thread

Possible issue for JPQL "LEFT [OUTER] JOIN"

Possible issue for JPQL "LEFT [OUTER] JOIN" is doing "[INNER] JOIN".   Thanks. #1 2012-04-20 18:19 Possible issue for JPQL "LEFT [OUTER] JOIN" is doing "[INNER] JOIN".   Thanks. ...

 
api-jdo

ForeignKey.members

Member (field and property) names that compose this foreign key.(Annotation Element of javax.jdo.annotations.ForeignKey)

 
forum_thread

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: ... an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and ...

 
api-jdo

getObjectId(pc)

The ObjectId returned by this method represents the JDO identity of the instance.(Method of javax.jdo.PersistenceManager)

 
forum_thread

Adding EntityListener Throws Unexpected Internal Exception

I tried adding EntityListener for a entity class and an exception was thrown. I followed similar as mentioned on the documentation but no luck. My entity class looks like below: ... Setter / Getter, Map, Enum & other primitive fields .. } and listener like below: public ...

 
forum_thread

On initialisation of lists: impact on migration from EclipseLink to ObjectDB

I would like to draw the attention of those assessing migration from EclipseLink ORM to ObjectDB to a significant difference in the initialization of persistent lists, namely that EclipseLink injects a List implementation into the List field to be initialise it during EntityManager.persist(). So in EclipseLink the following works: public class HasListOfBlocks { .. #1 2011-06-01 18:39 I would like to draw the attention of those assessing migration from EclipseLink ORM to ObjectDB to a significant ...