[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: