Bonjour,
J'arrive pas à faire
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 Criteria crit = session.createCriteria(classPersiste.class); crit = crit.createAlias("mapropriete", "mapropr"); List retour = crit.setProjection( Projections.projectionList() .add( Projections.property("mapropr"), "mapropr" )) .setResultTransformer(Transformers.aliasToBean(maClass.class)).list();
il reconnait pas "maprop" sachant que je c'est bien un alias :
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: maprop of: fr.persist.classPersiste; nested
CAN U HELP PLEASE
Partager