I am using GAE SDK 1.5, running locally, I have entity id declared as:

        @Id
        @GeneratedValue(strategy=GenerationType.IDENTITY)
        private Long id;

and transaction explicitly disabled in persistence.xml

       <property name="datanucleus.appengine.autoCreateDatastoreTxns"
value="false"/>

but after new object is persisted by calling
entityManager.persiste(new object), the id value is null, the session
can't be flushed because it is not in transaction, and I wouldn't be
able to get the newly created id value.

if transaction is enabled, GAE entity group will prevent entity
modification across different entity groups, which mean I have to make
major modification to the codes; without transaction, I can't flush or
commit and wouldn't be able to get the newly created entity key...

am I doing something wrong? how do you get the new identity value
after persist without transaction?

thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to