Hey,

I disabled optimistic locking and i'm getting the following warning when
attempting to find() a one to many relation object:

You are attempting to directly mutate a persistent second class object (such
as a collection or map field) that you obtained before the transaction
began.  After beginning a datastore transaction, you must re-obtain any
references to mutable second class objects from the owning persistent
object.

My main object has a list of owned objects (one-to-many) and i persisted the
main object and then called find() (i made no changes to the fields) and
this is what i'm getting.

the find() is in a transaction...

Thanks,
Idan

-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/Disabling-optimistic-locking-tp5739668p5739668.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to