I am new to Hibernate Criteria Queries , I am struggling to get the count based on month.
session.createCriteria(Task.class)
.add(Restrictions.eq("completed", true))
.add(Restrictions.in("site", sites))
.setProjection(Projections.rowCount()).uniqueResult();
//group by "completedTime"
If I have to get the count group By Month based on completedTime. How can i achieve this