[jboss-user] [EJB 3.0] - Re: Retrieving data from database
waynebaylor
do-not-reply at jboss.com
Sat Jun 23 13:21:35 EDT 2007
did you insert the records into the table manually or did you use the EntityManager?
i've noticed that when i insert records manually queries made with EntityManager don't see them for a while. Not sure yet why that is...
if that's not your problem, then i would try the query as
em.createQuery("from "+Stores.class.getName()).getResultList();
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057144#4057144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057144
More information about the jboss-user
mailing list