• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

book is not mapped - hibernate issue

 
abdul mobeen
Greenhorn
Posts: 3
Hibernate PHP Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

      I am trying to create CRUD for Book Entity. But getting this error.:



HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: book is not mapped [from book].

Here the code :







servlet config file.





 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should be using the class name in the query not table name. Try this:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic