Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Between In Hibernet Not working

 
kaushik saha
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The between method is not working ....Is there another way?

Criteria crit =this.hibernateTemplate.getSessionFactory().openSession().createCriteria(LoanData.class);
crit.add(Expression.between("dateOfTransaction", new Date(fromDate.getTime()), new Date(toDate.getTime())));

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic