private List finder(String hql, Object... args) {
return getHibernateTemplate().find(hql, args);
}
public PostsList getPostsForThread(ForumPost post, int start, int max) {
DetachedCriteria crit = DetachedCriteria
.forClass(ForumPost.class).add(
Expression.or(Expression.eq("threadPost.id", post
.getId()), Expression.eq("id", post
.getId()))).addOrder(Order.asc("date"));