public List<LoanDar> getRecoveriesForAccountBeforeDate( long account, Date dueDate) throws DataAccessException { Criteria c = getSession().createCriteria(getPersistentClass()); c.add(Expression.eq("account",account)).add(Expression.eq("darFlag","R")).add(Expression.le("transactionDate", dueDate)).addOrder(Order.asc("transactionDate"));
return c.list(); }
1)getPersistent class takes LoanDar pojo
i have the above scenario is there any solutions to make it fast....
i tis taken much more time
anybody please help thanks in advance
|