1

How to make grouping without selecting the column?

detachedCriteria.setProjection(Projections.groupProperty("col1")); 

OR

detachedCriteria.setProjection(Projections.sqlGroupProjection("col1", "col1", new String[]{}, new Type[] {Hibernate.INTEGER}));
Mikko Maunu
  • 41,366
  • 10
  • 132
  • 135
Astrid
  • 11
  • 4

0 Answers0