Calendar minDate = Calendar.getInstance();
minDate.add(Calendar.DATE, -60);
String hql = "select t from Transaction t where t.transactionTime >= :minDate";
List<Transaction> result = session.createQuery(hql)
.setTimestamp("minDate", cal.getTime())
.list();