Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding hours to date column while creating criteria  RSS feed

 
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
Boost this thread!