Hi.
I'm creating EntityManager instance and keep it open through whole application 
cycle.
After doing em.persist() and objects still in session. Next em.persist() 
produces sqls for current persist + sqls for previous persists.
After doing em.clear() problem resolved, but all object left with detached 
state and has not session cache.
I think that em.clear() isn't be directly called from user code and should be 
another way. So, help, please, with ideology.

Attachment: signature.asc
Description: This is a digitally signed message part.



Reply via email to