[jboss-user] [EJB 3.0] - NamedQuery problem: TABLE is not mapped

Daniel Winz do-not-reply at jboss.com
Fri Aug 27 18:17:32 EDT 2010

Daniel Winz [http://community.jboss.org/people/danwin] replied to the discussion

"NamedQuery problem: TABLE is not mapped"

To view the discussion, visit: http://community.jboss.org/message/559400#559400

Hello Wolfgang,

yes I am using an EntityManager instance to create a query:

EntityManagerFactory emf = Persistence.createEntityManagerFactory("Employee-Details");
em = emf.createEntityManager();
EntityTransaction et = em.getTransaction();
Query query = em.createQuery("select e from EmployeeEntity e");
empList = query.getResultList();

Does it make a difference to use the @NamedQuery annotation?

Kind regards,


Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100827/3aa5ea5a/attachment.html 

More information about the jboss-user mailing list