• Post Reply Bookmark Topic Watch Topic
  • New Topic

book is not mapped - hibernate issue  RSS feed

 
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: 9608
36
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:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!