Cette réponse vaut pour tout tes autres post :
Vérifie que tu as bien un fichier hibernate.cfg.xml à la racine de ton application et vérifie qu'il est correct.
Je te renvoi à la doc en ligne pour plus d'information :
http://www.hibernate.org/hib_docs/refer ... tart-intro
un exemple de fichier de conf :
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:comp/env/jdbc/quickstart</property>
<property name="show_sql">false</property>
<property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property>
<!-- fichiers de mapping -->
<mapping resource="Cat.hbm.xml"/>
</session-factory>
</hibernate-configuration>