salut,
j'utilise hibernate version 3.2 et dans mon projet java j'ai créé le fichier hibernate.properties,lors de l'exécution j'obtiens l'erreur suivant:
ma question tout simplement,est ce que je dois éviter à utiliser le fichier hibernate.properties et mettre à sa place le fichier hibernate.cfg.xml?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml not found at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147) at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1411) at org.hibernate.cfg.Configuration.configure(Configuration.java:1433) at org.hibernate.cfg.Configuration.configure(Configuration.java:1420) at hibernate.classes_DAO.GestionChaines.ajouterChaine(GestionChaines.java:16) at hibernate.classes_DAO.Test.main(Test.java:11)
merci pour vos aides.
Partager