About identity

page

What is new in ObjectDB 2.0?

ObjectDB 2.0 supports many new features and improvements, including: Most of the features of the new JPA 2.0 and JDO 2.2 APIs. User defined IDs (primary key) and sequences. Support of unlimited index keys size. SQL like queries (" ...

 
api-jdo

Persistent.primaryKey

Whether this member is part of the primary key for application identity.(Annotation Element of javax.jdo.annotations.Persistent)

 
api-jdo

makeTransientAll(pcs)

Make a Collection of instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

getTransactionalObjectId(pc)

Return a copy of the JDO identity associated with the parameter instance.(Static Method of javax.jdo.JDOHelper)

 
api-jdo

addFetchGroups(groups)

Add the FetchGroups to the set of active fetch groups.(Method of javax.jdo.PersistenceManagerFactory)

 
forum_thread

Does ObjectDB support @Parent for @Embeddable reference to parent?

AFAIK JPA does not directly support an @Embeddable referencing the parent in which it is @Embedded. But Hibernate has a special @Parent for it (see Entity extensions 2.4.3.4.@Parent). @Entity public class Person { @Embeddable public Address address; ... } @Embeddable public class Address { @Parent public Person owner; ... } Is there a safe and recommended way of achieving this in ObjectDB ? ... ( strategy = GenerationType . IDENTITY ) private Integer id ;   @ Access ...

 
forum_thread

Entity with java.util.Date column gives ClassCastException in BIRT

Copied a straightforward entity class from my coleague. Using Eclipse Kepler (Reporting) and stored it in ObjectDB 2.5.3_02. After creating an ObjectDB BIRT DataSource and a DataSet, entered a simple JPQL query to select the fields. Entity looks like this: ... ( strategy = GenerationType . IDENTITY ) private long id ;   private ...

 
api-jdo

makeTransientAll(useFetchPlan, pcs)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
forum_thread

"Unsupported auto value type java.lang.String" when persisting new instance

I don't have a simple test case for this issue, but I'm getting this error: ... ( strategy = GenerationType . IDENTITY ) private String ID ; ...

 
forum_thread

Embedable & Reference?

Hi! I've got a situation I do not understand. Assume code like this: ... This is one of the consequences of not having an identity for embedded objects. Sharing persistent objects is only ...