| CacheRetrieveMode.BYPASS of EclipseLink is not useful. [message #645315] |
Thu, 16 December 2010 10:39  |
KeatingWang Messages: 2 Registered: December 2010 |
Junior Member |
|
|
Follow my code:
Company cc = em.find(Company.class, clientUser.getCompany().getId());
System.out.println(cc.getCompany_code());
HashMap findProperties = new HashMap();
findProperties.put(QueryHints.CACHE_RETRIEVE_MODE, CacheRetrieveMode.BYPASS);
Company oo = em.find(Company.class, clientUser.getCompany().getId(), findProperties);
System.out.println(oo.getCompany_code());
Just like the example "Used as EntityManager properties". here
But, there are nothing different between the two outputs.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01435 seconds