How to fetch total record count using Hibernate Criteria




Criteria criteria = getSession().createCriteria(getReferenceClass());

criteria.setProjection(Projections.projectionList().add(Projections.countDistinct("id"))


As an Amazon Associate I earn from qualifying purchases.

No comments:

Post a Comment

apt quotation..