About identity

forum_thread

user defined backup target

Dear objectdb Team 1. I could not find a way, to declare the name of the backup-file (while running the database).  The only way I found is to create the folder in which objectdb will copy the database - file:   #1 2013-11-11 17:37 Dear objectdb Team 1. I could not find a way, to declare the name of the backup-file (while running the d ...

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

 
forum_thread

Use of sequences to generate field values in JDO

I'm trying to use sequences to set field values in JDO.  I want to do this in XML metadata to avoid use of annotations. This is an example of what I'm trying:   <package name="com.spiffymap.sealog.model">         <sequence name="audit_seq" factory-class="java.lang.Long" strategy="contiguous"/>         <class name="Audit" identity-type="application"> ... / > <class name = "Audit" identity - type = "application" > <field name = ...

 
api-jdo

javax.jdo.JDONullIdentityException

An instance of this class is thrown when attempting to create an object id when the object id constructor parameter is null.(Exception of JDO)

 
api-jdo

makeTransientAll(pcs)

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

 
api-jdo

PersistenceCapable.identityType

Type of identity for this class or interface.(Annotation Element of javax.jdo.annotations.PersistenceCapable)

 
api-jdo

getTransactionalObjectId(pc)

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

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

 
api-jdo

removeFetchGroups(groups)

Remove the FetchGroups from the set of active FetchGroups.(Method of javax.jdo.PersistenceManagerFactory)

 
api-jdo

makeTransientAll(useFetchPlan, pcs)

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