db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JDO-686) Ability to attach a transient object
Date Sat, 10 Sep 2011 08:15:09 GMT
Ability to attach a transient object

                 Key: JDO-686
                 URL: https://issues.apache.org/jira/browse/JDO-686
             Project: JDO
          Issue Type: New Feature
          Components: api, specification, tck
            Reporter: Andy Jefferson

As per this thread
the ability to call pm.makePersistent(obj) with a transient object where that transient object
has its identity set and where it corresponds to an object in the datastore. Obviously that
would only work for application-identity (since it has PK fields, whereas datastore-id has
none so "id" not really defined by the object). 

One option for datastore-identity would be to have a new method like
pm.makePersistentForIdentity(Object obj, Object id);
This would obviously not allow you to persist by reachability, so whether we just don't permit
it for datastore-identity is one option, or alternatively pass in a Map of Object keyed by
the identity.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message