Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.hql.ast.QuerySyntaxException: Unable to locate class

 
Rahul Ba
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting following exception while running the hql query. My class is present in the application.

org.hibernate.hql.ast.QuerySyntaxException: Unable to locate class [DETablePojo]

Now, DETablePojo is present in the appl which is simple class having getter and setter method. This class is not mapped to any
table.


PLease let me know your opinion.

Rahul
 
Shannon McGee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

How are you running a query on a class that doesn't map to a table?
If you want to insert/ retrieve the class from the DB, you will need to annotate the class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic