[jboss-user] [EJB 3.0] - Re: ERROR: is not mapped

2007-11-15 Thread itsme
How is your class' name. Suppose it is x.y.User the your HQL-Code would look like SELECT u FROM User u \sandor\ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104945#4104945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [EJB 3.0] - Re: ERROR: is not mapped

2007-11-15 Thread manitito
Table name and Class name Users List list = session.createQuery("SELECT * FROM USERS).list(); Use HQL -> exception List list = session.createSQLQuery("SELECT * FROM USERS).list(); Pure SQL -> work, with out problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopi