About identity

forum_thread

Future JDO versions?

We are about to release our first product using ObjectDB (as a small embedded store), and soon hope to release a much larger product using ObjectDB (will need an OEM license).  What really interests us is JDO.  We have been using JDO for over a decade and have found it consistently a far better API than JPA, as all kinds of features that are optional or require special extensions in JPA products, (such as large query optimisation, storage of collections of non-entities and automated management of identity) are built-in to JDO.... of collections of non-entities and automated management of identity) are built-in to JDO.  We have recently migrated projects for JPA ...

 
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: #1 2013-03-30 16:36 Hi! I'm trying to compare 2 identical objects in SELECT with no success: @ Embeddable ...

 
api-jdo

equals(other)

Return whether this instance is equal to the other.(Method of javax.jdo.FetchGroup)

 
forum_thread

java.sql.Timestamp.getTime() not working

Hi, I need to work with Timestamp diff in two entity fields, but this queries SELECT count(p) FROM Player p WHERE p.loginAt.getTime()-p.registeredAt.getTime()>:value SELECT p.loginAt.getTime() FROM Player p fails with object is not an instance of declaring class but SELECT p.loginAt.getYear() FROM Player p works. How that possible?   ... ( strategy = GenerationType . IDENTITY ) public int id ; @ Temporal ( ...

 
api-jpa

javax.persistence.EntityManager

Interface used to interact with the persistence context.(Interface of JPA)

 
api-jdo

getObjectIds(pcs)

Get object ids for a collection of instances.(Static Method of javax.jdo.JDOHelper)

 
api-jdo

PersistenceCapable.objectIdClass

Primary key class when using application identity and using own PK.(Annotation Element of javax.jdo.annotations.PersistenceCapable)

 
api-jdo

jdoCopyKeyFieldsToObjectId(oid)

Copy fields from this PersistenceCapable instance to the Object Id instance.(Method of javax.jdo.spi.PersistenceCapable)

 
api-jdo

makeTransientAll(pcs, useFetchPlan)

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

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