Hibernate get distinct list with Criteria
The only way I could figure out to get the distinct list using Hibernate Criteria is by using ResultTransformer function. eg. List result = session.createCriteria(Order.class) .setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY) ——- .list(); The con is it fetches all the objects and then filters it. Continue reading Hibernate get distinct list with Criteria