Marc - > ->so if we dereference the persistent object , the object is GCed and the disapear from the first level cache (as state manager is not root No. An entity will in the L1 cache until the context ends or it is cleared(em.clear) or if the JVM is running low on memory(the managedcache uses SoftReferences)...and I'm sure there are some other scenarios that aren't coming to my head.
yes Soft reference sorry so it dispears on memory pressure ! in fact my question coming from the fact that i try to understand the best approach for batch job and flushing strategy This property has nothing to do with the L1 cache. Yes it seem to just flush more agressively Thanks Rick -- View this message in context: http://openjpa.208410.n2.nabble.com/understanting-GC-live-cycle-of-object-statemanager-first-level-cache-tp5541894p5543039.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
