Hibernate Criteria Transformers.aliasToBean is not populating correct values
问题 I am trying to create BO by joining my entity classes Criteria criteria = session.createCriteria(Report.class,"r"); criteria .createAlias("template", "t") .createAlias("constituents", "rc") .createAlias("rc.entity", "pe") .createAlias("pe.model", "m") .createAlias("pe.scenario", "s") .setProjection(Projections.projectionList() .add( Projections.property("r.Id")) .add( Projections.property("t.Typ")) .add( Projections.property("pe.bId")) .add( Projections.property("m.model")) .add( Projections