-
1. Re: Entity Property Not Up-To-Date
norman.richards Apr 1, 2007 1:44 PM (in response to xtia004)What kind of persistence context are you using? Is it a seam-managed PC?
-
2. Re: Entity Property Not Up-To-Date
xtia004 Apr 2, 2007 6:49 AM (in response to xtia004)It is injected by "@PersistenceContext(type = PersistenceContextType.EXTENDED)". I also set "hibernate.cache.use_query_cache" to false and removed "hibernate.cache.provider_class" property from persistence.xml
-
3. Re: Entity Property Not Up-To-Date
xtia004 Apr 3, 2007 8:43 PM (in response to xtia004)Could anybody help and reply on this issue? We cannot always use em.clear() because there are more than one queries at the same SFSB. In addition, now we cannot trust the result if rerunning the query, but the system is getting bigger, it is hard to check for each query to see if em.clear required or not.
-
4. Re: Entity Property Not Up-To-Date
xtia004 Apr 20, 2007 12:13 AM (in response to xtia004)Hibernate EntityManager User guide 3.9.1:
Hibernate does guarantee that the Query.getResultList()/Query.getSingleResult() will never return stale data.
Can we trust it??? -
5. Re: Entity Property Not Up-To-Date
utdrew Jan 8, 2008 6:02 AM (in response to xtia004)I'm having the same problem. Has anybody been able to figure out how to fix this? My entity manager is in another jar so the way I'm injecting it is:
@Resource(mappedName="java:/FeeEntityManager") private EntityManager em;