f.append(" and bean.id<:id");
f.setParam("id", id);
f.append(" and bean.status=" + ContentCheck.CHECKED);
f.append(" order by bean.id desc");
}
Query query = f.createQuery(getSession());
query.setCacheable(cacheable).setMaxResults(1);
return (Content) query.uniqueResult();
}
@SuppressWarnings("unchecked")