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

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

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:

 

 

1,046 total views, 2 views today

Leave a Reply

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