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