Hello,
Tu as eu une erreur du type invalid file : hbernate.cfg.xml,
J'ai édité ton fichier sous xmlspy et ene ffet, celui ci n'était pas valide a cause de la ligne de déclaration de la DTD.
Je te transmets le même fichier valide :
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- local connection properties -->
<property name="hibernate.connection.url">
jdbc:postgresql://localhost:5432/DBCRJJ
</property>
<property name="hibernate.connection.driver_class">
org.postgresql.Driver
</property>
<property name="hibernate.connection.username">postgres</property>
<property name="hibernate.connection.password">1234</property>
<!-- property name="hibernate.connection.pool_size"></property -->
<!-- dialect for PostgreSQL -->
<property name="dialect">
org.dialect.PostgreSQLDialect
</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.use_outer_join">true</property>
<!--
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
//-->
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<mapping resource="contact.hbm" />
</session-factory>
</hibernate-configuration>
Bonne chance,
Niroken
Hello,
Tu as eu une erreur du type invalid file : hbernate.cfg.xml,
J'ai édité ton fichier sous xmlspy et ene ffet, celui ci n'était pas valide a cause de la ligne de déclaration de la DTD.
Je te transmets le même fichier valide :
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- local connection properties --> <property name="hibernate.connection.url"> jdbc:postgresql://localhost:5432/DBCRJJ </property> <property name="hibernate.connection.driver_class"> org.postgresql.Driver </property> <property name="hibernate.connection.username">postgres</property> <property name="hibernate.connection.password">1234</property> <!-- property name="hibernate.connection.pool_size"></property --> <!-- dialect for PostgreSQL --> <property name="dialect"> org.dialect.PostgreSQLDialect </property> <property name="hibernate.show_sql">false</property> <property name="hibernate.use_outer_join">true</property> <!-- <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property> <property name="jta.UserTransaction">java:comp/UserTransaction</property> //--> <property name="hibernate.transaction.factory_class"> org.hibernate.transaction.JDBCTransactionFactory </property> <mapping resource="contact.hbm" /> </session-factory> </hibernate-configuration>Bonne chance,
Niroken