1. JPA 2.0 Criteria and grouping of Predicates stackoverflow.comI encounter problem with Hibernate EntityManager 3.5.3-Final when it comes to composite predicates. Example (not actual code snippet, but the idea should be clear):
|
2. Hibernate Criteria grouping forum.hibernate.orgDear All, i have a problem in criteria API there is a bug in this criteria when i using it with grouping like Criteria criteria = session.createCriteria(VesselMove.class, "vm"); criteria.add(Restrictions.eq("vm.agentId", agentId)); criteria.setProjection(Projections.max("vm.toDate")); criteria.setProjection(Projections.property("vm.visitId")); criteria.setProjection(Projections.projectionList() .add(Projections.groupProperty("vm.visitId")) ); List |