users@glassfish.java.net

Thank all for helping

From: <forums_at_java.net>
Date: Thu, 11 Nov 2010 20:09:15 -0800

 Thank all for helping me.

Problem was Entity manager keeps cache. If we clean it before use, problem
wont occur.

emf.getCache().evictAll();

List<Shoppingcart> cartList =
(List<Shoppingcart>)emf.createEntityManager().createNamedQuery("Shoppingcart.findAll").getResultList();


--
[Message sent by forum member 'xcyclops40']
View Post: http://forums.java.net/node/711073