je treavaille avec hibernate tools avec lequel j'ai fais du reverse engineering et generer les classes ainsi que leur fichiers de mappings mais quand j'ai fais un petit programme de test il me sort cette exception:
j'ai verifier dans le fichier de configuration et j'y ai trouvais tous les fichier hbm.xml bien referencés
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 java.lang.ExceptionInInitializerError at actions.SlctActions.getpclientbycin(SlctActions.java:31) at actions.Test.main(Test.java:10) Caused by: java.lang.RuntimeException: Problème de configuration : Association references unmapped class: cls.Decision at util.HibernateUtil.<clinit>(HibernateUtil.java:16) ... 2 more Caused by: org.hibernate.MappingException: Association references unmapped class: cls.Decision at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2399) at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2678) at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:66) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1163) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1319) at util.HibernateUtil.<clinit>(HibernateUtil.java:14) ... 2 more
merci pour votre aide.
Partager