Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
Boost this thread!