Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with select query in hibernate

 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am facing problem in issuing select command using hibernate. I wrote a sample codeWhen I try to execute this program I am getting an error like this
What is the problem? Thank you all in advance.
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I fixed the problem. This post helped me fix the problem.

I was supposed to supply the POJO class name and the POJO class properties in the query. But I gave the database column names and table name in the query.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic