you need to create a new method in Torneo which will detach collections
field. Now you just need to call this function with PersistenceManager as
argument.

public Torneo devolverTorneo(Long idTorneo) {

             Torneo b = pm.getObjectById(Torneo.class, idTorneo);

   b.detachFields(pm);
   b=pm.detachCopy(b);
   pm.close();

             return b;
             //The method return the object for update

}


public class Torneo implements Serializable{
....

public void detachFields(PersistenceManager pm) {

 pm.detachCopyAll(equiposTorneo);

}

....
}

-- 
Prashant
www.claymus.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.

Reply via email to