I've submitted this bug to Dhanji in the forum Warp-core cause i use warp-persist in my project. we talk long time, and we got the conclusion that there is a bug of JPA provider - hibernate.
this is problem info below : ===========================================
When i update an entity with EntityManager.merge(T), it update database success. but when get it with em.find(), I got an random cache data. for example :
User.name = "Dhanji" update to "Bevis" update to "Warp" update to "Guice"
In this process. I refresh page to view User. It show me random name in ["Dhanji", "Bevis", "Warp", "Guice"]. (Not a page cache i checked) By debug code i know I merge data in em1, and view in em2. so the data jump to and fro. Even i can use em.refresh to get the newest data, but it's low performance and the cascade data still be cache.
Does anybody know what's wrong ? my project is very urgent! My hibernate version is 3.5.5 and jpa is 2.0
Bevis
Last edited by avengerbevis on Wed Sep 15, 2010 3:43 am, edited 1 time in total.
|