Salut,

Voici mon fichier de mapping :

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
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
	<class name="bean.Procedure" schema="salut" table="PROCEDURE">	
		<composite-id>
			<key-property column="FILIERE_CODE" length="18" name="codeFiliere" type="int"/>
			<key-property column="PROCEDURE_CODE" length="18" name="codeProc" type="int"/>
		</composite-id>
 
		<set name="listeMail" lazy="true">
			<key>
				<column name="FILIERE_ID"/>
				<column name="PROC_ID"/>
			</key>
			<one-to-many class="bean.Mail"/>
		</set>
	</class>	
</hibernate-mapping>
J'aimerais savoir si quand je ferai un ajout d'une procédure ca ajoutera aussi ma liste de mail dans ma table mail ??