[jboss-user] [EJB 3.0] - Re: ERROR: <table name> is not mapped

manitito do-not-reply at jboss.com
Thu Nov 15 05:40:10 EST 2007


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=viewtopic&p=4104920#4104920

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104920



More information about the jboss-user mailing list