return select(q, "selectAllChildren", params(parentUrl));
}
public List<PageEntity> selectAllChildren(final String parentUrl,
Date startDate, Date endDate) {
Query q = newQuery();
q.addFilter("parentUrl", FilterOperator.EQUAL, parentUrl);
q.addFilter("publishDate", FilterOperator.GREATER_THAN_OR_EQUAL,
startDate);
q.addFilter("publishDate", FilterOperator.LESS_THAN, endDate);
return select(q, "selectAllChildrenDate", params(parentUrl, startDate,
endDate));
}