/**
* @see ActivityDao#findByCriteria(ActivityCriteria)
*/
public java.util.List handleFindByCriteria(final ActivityCriteria criteria) {
try {
CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), ActivityImpl.class);
criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
CriteriaSearchParameter param1 = new CriteriaSearchParameter(criteria.getBeginDate(),
"beginDate", CriteriaSearchParameter.GREATER_THAN_OR_EQUAL_COMPARATOR);
criteriaSearch.addParameter(param1);
CriteriaSearchParameter param2 = new CriteriaSearchParameter(criteria.getEndDate(),
"endDate", CriteriaSearchParameter.GREATER_THAN_OR_EQUAL_COMPARATOR);
criteriaSearch.addParameter(param2);
java.util.List results = criteriaSearch.executeAsList();
transformEntities(TRANSFORM_NONE, results);
return results;
}
catch (org.hibernate.HibernateException ex) {
throw super.convertHibernateAccessException(ex);