why is this impossible?
Criteria crit1 = sess.createCriteria(Criteria1Class.class);
Criteria crit2 = crit1.createCriteria("criteria2Class");
crit2.setProjection(Projections.groupProperty("criteria2Property"));
List<String> l2 = crit2.list();
If I use this construct, I get an error:
could not resolve property: criteria2Property of: com.foo.bar.models.Criteria1Class
offcourse2Property criteria does not exist Criteria1Classbecause it exists inCriteria2Class
So why is this groupPropertynot possible in associations @manyToOnefrom Criteria1Classto Criteria2Class?
source
share