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;