Reputation: 32081
The DataNucleus docs talk a lot about detached objects and what it means to be detached, but, for new users, they kind of skip over the simplistic: What does it mean to be attached?
http://www.datanucleus.org/products/accessplatform_1_1/jdo/attach_detach.html
If I perform:
MyPersistableObj p = pm.makePersistent(myNewPersistableObj);
If I understand correctly, I'm getting back a copy of the object that was just posted to the database, but how that is special is a bit fuzzy.
Upvotes: 1
Views: 960
Reputation: 15577
JDO object lifecycle is well defined in http://www.datanucleus.org/products/accessplatform_2_2/jdo/object_lifecycle.html "attached" is simply 'managed by the PersistenceManager' so a state like "Persistent Clean"
Upvotes: 2