[appengine-java] Update an Existing object in the datastore - Problem

2010-12-29 Thread lisandrodc
Hi! I have a problem with the persistence of an existing object "Torneo" (with a empty collection of objects "Equipo"). When I add elements to the collection and want to persist, sometimes persist and sometimes not persist in the datastore(Restarting the server of the application). The code of exam

[appengine-java] Update an Existing object in the datastore - Problem

2011-01-03 Thread lisandrodc
Hi! I have a problem with the persistence of an existing object "Torneo" (with a empty collection of objects "Equipo"). When I add elements to the collection and want to persist, sometimes persist and sometimes not persist in the datastore(Restarting the server of the application). The code of exam

Re: [appengine-java] Update an Existing object in the datastore - Problem

2011-01-03 Thread A. Stevko
I think the inconsistent saving that you are experiencing has to do with how the parent object, Torneo, is being accessed. You are passing an database object reference into a transaction. Is that object "detachable" ? If not, then you should be retrieving it and updating it within the same transac