bonjour ,j'ai un probleme avec hibernate 3.3.2


j'ai une base de donne mysql :
et je veux recuperer les fichiers de mapping je fais tos les etapes
je crre le fichier de console de configuration et je cree hibernate.revenge.xml
ou j'include les tables apres j'esseye de generer le mapping (en cochant sur mappin onglet exporter de hibernate code generation configurations )

le mappin est generé mais il ne contient pas les tag <many-to-one> il ne gere pa les relations da la base de donne


peut etre que le driver utilisé mysql-connector-java-5.1.10-bin to my sql ne ramene pas les relation de la base de donne ? j'ai esseye une autre version mais meme chose


notez que hibernate.revenge.xml generé ne contient pas <foreign-key> ou <many-to-one> il contient


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

<hibernate-reverse-engineering>

<table-filter match-catalog="ihssan" match-name="accurenceproduit"/>
<table-filter match-catalog="ihssan" match-name="accurencecham"/>

<table-filter match-catalog="ihssan" match-name="benevole"/>

<table-filter match-catalog="ihssan" match-name="besion"/>

<table-filter match-catalog="ihssan" match-name="champ"/>
<table-filter match-catalog="ihssan" match-name="collection"/>

<table-filter match-catalog="ihssan" match-name="commune"/>
<table-filter match-catalog="ihssan" match-name="don"/>
<table-filter match-catalog="ihssan" match-name="donnateur"/>
<table-filter match-catalog="ihssan" match-name="lignedon"/>
<table-filter match-catalog="ihssan" match-name="logement"/>
<table-filter match-catalog="ihssan" match-name="pauvre"/>
<table-filter match-catalog="ihssan" match-name="paye"/>
<table-filter match-catalog="ihssan" match-name="personne"/>
<table-filter match-catalog="ihssan" match-name="produichan"/>
<table-filter match-catalog="ihssan" match-name="produit"/>
<table-filter match-catalog="ihssan" match-name="quartier"/>
<table-filter match-catalog="ihssan" match-name="soucollection"/>
<table-filter match-catalog="ihssan" match-name="specialite"/>
<table-filter match-catalog="ihssan" match-name="traductioncham"/>
<table-filter match-catalog="ihssan" match-name="ville"/>



</hibernate-reverse-engineering>

mapping generé (par exemple de table besion



<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 26 nov. 2009 15:28:42 by Hibernate Tools 3.2.4.GA -->
<hibernate-mapping>
<class name="aa.Besion" table="besion" catalog="ihssan">
<id name="idbesion" type="java.lang.Integer">
<column name="idbesion" />
<generator class="identity" />
</id>
<property name="intitulebesion" type="string">
<column name="intitulebesion" length="100" not-null="true" />
</property>
<property name="matiere" type="string">
<column name="matiere" length="100" not-null="true" />
</property>
<property name="dtdeclaration" type="date">
<column name="dtdeclaration" length="10" not-null="true" />
</property>
<property name="satisfai" type="string">
<column name="satisfai" length="40" not-null="true" />
</property>
<property name="qte" type="int">
<column name="qte" not-null="true" />
</property>
<property name="iddoc" type="int">
<column name="iddoc" not-null="true" />
</property>
<property name="montant" type="int">
<column name="montant" not-null="true" />
</property>
<property name="soucol" type="int">
<column name="soucol" not-null="true" />
</property>
<property name="idpauvre" type="int">
<column name="idpauvre" not-null="true" />
</property>
</class>
</hibernate-mapping>

/* id pauvre c'est un cle etrangere et il negenera pas <many-to-one>*/



merci j'attends votre reponse