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();
et.begin();
Query query = em.createQuery("select e from EmployeeEntity e");
empList = query.getResultList();
Does it make a difference to use the @NamedQuery annotation?
Kind regards,
Daniel
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/559400#559400]
Start a new discussion in EJB 3.0 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]