code: public Date getDateOfOlderSmsByApplicationAndAccount(final Application application, final Account account) {
  		final Criteria criteria = getCurrentSession().createCriteria(Sms.class);
  		criteria.add(Restrictions.eq(Sms.PROP_APP, application));
  		criteria.add(Restrictions.eq(Sms.PROP_ACC, account));
  		
  		criteria.setProjection(Projections.min(Sms.PROP_DATE));
  		return (Date) criteria.uniqueResult();
  	}
docs: /* (non-Javadoc)
  @see org.esupportail.smsuapi.dao.DaoService#getDateOfOlderSmsByApplicationAndAccount
  (org.esupportail.smsuapi.dao.beans.Application, org.esupportail.smsuapi.dao.beans.Account)