Hi,

Let's say we have an entity group hierarchy like this:

    Foo
       |
       --- Grok

Foo is the entity parent. Any time I add a Grok instance to the
datastore, does the parent Foo instance have to be locked? Example:

    Transaction tx = pm.currentTransaction();
    try {
        tx.begin();

        Grok grok = new Grok();
        pm.makePersistent(grok);

        tx.commit(); // will a parent Foo get locked now?
    }
    finally {
        if (tx.isActive()) {
            tx.rollback();
    }

I guess the same question then - if I'm performing a transaction on
the parent Foo, will all its Grok instances be locked?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to