exception: org.hibernate.QueryException: could not resolve property
Bonjour,
je ne comprend pas pourquoi j'ai eu cette exception, voila la declaration de ma table Stockage dans le fichier service.xml:
Code:
1 2 3 4 5 6 7 8
|
<entity name="Stockage" local-service="true">
<!-- PK fields -->
<column name="numPalette" type="String" primary="true" />
<column name="numEmplacement" type="String" primary="true" />
<column name="codeEntrepot" type="String" primary="true"/>
<column name="date" type="Date" />
</entity> |
et voila la methode qui a declenché cette exception dans la classe Stockage LocalServiceImpl
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
public java.util.List search (String codeEntrepot){
Session session = HibernateUtil.openSession();
Criteria criteriaB=session.createCriteria(Stockage.class);
criteriaB.add(Restrictions.eq("codeEntrepot",codeEntrepot));
List lfinalB=criteriaB.list();
HibernateUtil.closeSession(session);
return lfinalB;
} |
et voila l'exception que j ai eu:
Code:
1 2
|
org.hibernate.QueryException: could not resolve property codeEntrepot of: com.ext.portlet.login.model.impl.StockageImpl |
Merci d'avance.