Assuming a ClassA object with the specified id already exists, the code
you've posted works fine for me.  Could you put together a complete example
that demonstrates the unexpected behavior?

Thanks,
Max

On Wed, Feb 10, 2010 at 7:49 PM, vori <[email protected]> wrote:

> Is it a bug on JDO of SDK 1.3.1?
>
> ------
> PersistentManager pm = PMF.get().getPersistenceManager();;
>
> ClassA classA = pm.getObjectById(ClassA.class, "id");
> ClassB classB = new ClassB();
>
> Transaction tx = pm.currentTransaction();
> tx.begin();
> pm.makePersistent(classB);
>
> tx.commit(); // It throws "javax.jdo.JDOException: can't operate on
> multiple entity groups in a single transaction."
> ------
>
> --
> 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]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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