Ajouter un commentaire

Niroken
Re: proléme Hibernate

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

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
 FFFF   AA   W     W  N   N  Y   Y 
F A A W W NN N Y Y
FFF AAAA W W W N N N Y
F A A W W W N NN Y
F A A W W N N Y