salut les supers ,
j'ai un pb de mapping des classes associations many to many
je précise plus:
je developpe sous netbeans avec jsf et spring et richfaces ,j'ai une base oracel10g ,dont j'ai des associations de type many to many .

je commence par crer le fichier hibernate1.cfg.xml ,ensuite je créer le hibernate.reveng.xml ou je chois toutes mes classes et je je coche ainsi include related tables ,jusque là tous se passe bien .
une fois je fais le "mappig files pojos from database .." les fichiers de mapping des classes associations ne sont pas générer.

je donne un exemple :j'ai la classe profil ( libelle,status)et la classe agent(login ,job,...)avec une liaison many to many qui donne une classe association profilAgent ( libelle,login ).
voila le fichier mapping de profil:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
<hibernate-mapping>
  <class name="Entity.Profil" schema="BANKFINAL" table="PROFIL">
    <id name="libelleprofil" type="string">
      <column length="254" name="LIBELLEPROFIL"/>
      <generator class="assigned"/>
    </id>
    <property name="statusp" type="big_decimal">
      <column name="STATUSP" precision="22" scale="0"/>
    </property>
    <set inverse="false" name="droits" table="DROITPROFIL">
      <key>
        <column length="254" name="LIBELLEPROFIL" not-null="true"/>
      </key>
      <many-to-many entity-name="Mapping.Droit">
        <column length="254" name="LIBELLEDROIT" not-null="true"/>
      </many-to-many>
    </set>
    <set inverse="false" name="agents" table="PROFILAGENT">
      <key>
        <column length="254" name="LIBELLEPROFIL" not-null="true"/>
      </key>
      <many-to-many entity-name="Mapping.Agent">
        <column length="254" name="LOGIN" not-null="true"/>
      </many-to-many>
    </set>
  </class>
</hibernate-mapping>

et le fichier de mapping Agent
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 
<hibernate-mapping>
  <class name="Entity.Agent" schema="BANKFINAL" table="AGENT">
    <id name="login" type="string">
      <column length="254" name="LOGIN"/>
      <generator class="assigned"/>
    </id>
    <property name="password" type="string">
      <column length="254" name="PASSWORD"/>
    </property>
    <property name="nom" type="string">
      <column length="254" name="NOM"/>
    </property>
    <property name="prenom" type="string">
      <column length="254" name="PRENOM"/>
    </property>
    <property name="statusagent" type="big_decimal">
      <column name="STATUSAGENT" precision="22" scale="0"/>
    </property>
    <property name="job" type="string">
      <column length="254" name="JOB"/>
    </property>
    <set inverse="true" name="smsemails">
      <key>
        <column length="254" name="LOGIN"/>
      </key>
      <one-to-many class="Entity.Smsemail"/>
    </set>
    <set inverse="true" name="profils" table="PROFILAGENT">
      <key>
        <column length="254" name="LOGIN" not-null="true"/>
      </key>
      <many-to-many entity-name="Mapping.Profil">
        <column length="254" name="LIBELLEPROFIL" not-null="true"/>
      </many-to-many>
    </set>
    <set inverse="true" name="operations">
      <key>
        <column length="254" name="LOGIN"/>
      </key>
      <one-to-many class="Entity.Operation"/>
    </set>
    <set inverse="true" name="reclamations">
      <key>
        <column length="254" name="LOGIN"/>
      </key>
      <one-to-many class="Entity.Reclamation"/>
    </set>
  </class>
</hibernate-mapping>

bien sur le fichier de la classe ProfilAgent n'est pas généré .donc le probleme c'est que lorsque je déploie mon projet il me signale une erreur disant que le fichier de mapping de la classe ProfilAgent n'existe pas .


doit je l'ajouter manuellement et le configurer aussi dans l'applicationContext?