• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

comparison operator with HQL

 
waqas shahwar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I want to get all property objects from database whose price is <300000&>100000.
Method declaration should be like
getPropertyByPrice(double min,double max);
Does any one know how to do it.
Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. You do it the same way you would in SQL. What have you tried so far?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic