Hello I am using hibernate in my example.For bean Table Audit Trial I want to fetch audit trial between a date range with inclusion of upper & lower limits. My code is like below
Criteria criteria = session.createCriteria(AuditTrail.class);
criteria.add(Restrictions.between("auditDate", sDate, eDate));
My starting date is 25/11/2010
. and end date is 25/05/2011
.But it is only giving the result up to 24/05/2011
.It is not performing inclusive search.Any other way to do this.
I am using SQL server.