Criteria criteria = session.createCriteria(Student.class);
ProjectionList projectionList = Projections.projectionList();
projectionList.add(Projections.property("name"));
projectionList.add(Projections.groupProperty("course"));
criteria.setProjection(projectionList);
List results = criteria.list();
'jpa, hibernate'에 해당되는 글 1건
- 2017.06.09 Hibernate Criteria Group By