Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!