Hi, I think it is a bug around transaction of JDO/SDK1.3.1.
It does not occurs with SDK1.3.0
----
Entity entityA = pm.getObjectById(Entity.class, "keyA");
entityA.setDoubleProperty(Math.random());
tx = pm.currentTransaction();
tx.begin();
// This makePersistent throws "javax.jdo.JDOException:
// can't operate on multiple entity groups in a single
// transaction.", if any properties of the entity gotten
// via getObjectById was updated.
pm.makePersistent(new Entity("keyB"));
if(tx.isActive()) tx.commit();
-----
Full source code is here.
- http://code.google.com/p/test-gae-j-sdk-131/
Compiled application is deployed on here.
- http://test4sdk131.appspot.com/
--
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.