• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Hibernate Query

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this Hibernate Query



When it runs it returns 0 result but when i Copy the generated SQL and run , it returns the right result, what can i be doing wrong here
 
Danilo Dadonas
Ranch Hand
Posts: 59
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I never declered a parameter using "?". Try to use something like this: ":parameter_1".

Example:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic