• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding hours to date column while creating criteria

 
Ankur Premi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to add some hours to a date column before applying criteria onto it.

//This is something I want -- >>> criteria.add(Restrictions.geProperty(("date"+few_hours), system_date));


But I am not able to get the solution.

Please help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic