[Solved] exception in thread main org.hibernate.hql.ast.querysyntaxexception is not mapped

(Last Updated On: June 6, 2013)

Exception in thread main org.hibernate.hql.ast.querysyntaxexception is not mapped:

List myList = s.createQuery(“FROM hibernate“).list();

in the above hibernate is the table name.

We have to change that table name to class name that is mapped with above hibernate table name like below,

List myList = s.createQuery(“FROM Hibernate“).list();

Hibernate is the Class name and it is case sensitive.

 

Recommended Books:

 

 

500 total views, 0 views today

Leave a Reply

Your email address will not be published. Required fields are marked *