java - Hibernate error - QuerySyntaxException: users is not mapped [from users] - Stack Overflow
In the HQL , you should use the java class name and property name of the mapped @Entity
instead of the actual table name and column name , so the HQL should be :
List<User> result = (List<User>) session.createQuery("from User").list();
Read full article from java - Hibernate error - QuerySyntaxException: users is not mapped [from users] - Stack Overflow
No comments:
Post a Comment