1 | <?xml version="1.0"?> |
---|
2 | <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
---|
3 | "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
---|
4 | <!-- Generated 5 f?vr. 2007 11:07:12 by Hibernate Tools 3.2.0.b9 --> |
---|
5 | <hibernate-mapping> |
---|
6 | <class name="integration.hibernate.Plateforme" table="plateforme" schema="public"> |
---|
7 | <comment>Table contenant les nom des plateformes</comment> |
---|
8 | <id name="plateformeId" type="int"> |
---|
9 | <column name="plateforme_id" /> |
---|
10 | <generator class="sequence"> |
---|
11 | <param name="sequence">plateforme_plateforme_id_seq</param> |
---|
12 | </generator> |
---|
13 | </id> |
---|
14 | <many-to-one name="commentaire" class="integration.hibernate.Commentaire" fetch="select"> |
---|
15 | <column name="commentaire_id"> |
---|
16 | <comment>lien vers la table commentaire</comment> |
---|
17 | </column> |
---|
18 | </many-to-one> |
---|
19 | <many-to-one name="typePlateforme" class="integration.hibernate.TypePlateforme" fetch="select"> |
---|
20 | <column name="type_plateforme_id" not-null="true"> |
---|
21 | <comment>lien vers la table type_plateforme</comment> |
---|
22 | </column> |
---|
23 | </many-to-one> |
---|
24 | <property name="plateformeNom" type="string"> |
---|
25 | <column name="plateforme_nom" length="50" not-null="true" unique="true"> |
---|
26 | <comment>nom de la plateforme</comment> |
---|
27 | </column> |
---|
28 | </property> |
---|
29 | <set name="bilans" inverse="true" > |
---|
30 | <key> |
---|
31 | <column name="plateforme_id" not-null="true"> |
---|
32 | <comment>lien vers la table plateforme</comment> |
---|
33 | </column> |
---|
34 | </key> |
---|
35 | <one-to-many class="integration.hibernate.Bilan" /> |
---|
36 | </set> |
---|
37 | <set name="mesures" inverse="true"> |
---|
38 | <key> |
---|
39 | <column name="plateforme_id" not-null="true"> |
---|
40 | <comment>lien vers la table plateforme</comment> |
---|
41 | </column> |
---|
42 | </key> |
---|
43 | <one-to-many class="integration.hibernate.Mesure" /> |
---|
44 | </set> |
---|
45 | <set name="parametres" table="requete_plat_param"> |
---|
46 | <key> |
---|
47 | <column name="plateforme_id" not-null="true"> |
---|
48 | <comment>lien vers la table plateforme</comment> |
---|
49 | </column> |
---|
50 | </key> |
---|
51 | <many-to-many entity-name="integration.hibernate.Parametre"> |
---|
52 | <column name="parametre_id" not-null="true"> |
---|
53 | <comment>lien vers la table parametre</comment> |
---|
54 | </column> |
---|
55 | </many-to-many> |
---|
56 | </set> |
---|
57 | <set name="capteurs" table="requete_plat_capt"> |
---|
58 | <key> |
---|
59 | <column name="plateforme_id" not-null="true"> |
---|
60 | <comment>lien vers la table plateforme</comment> |
---|
61 | </column> |
---|
62 | </key> |
---|
63 | <many-to-many entity-name="integration.hibernate.Capteur"> |
---|
64 | <column name="capteur_id" not-null="true"> |
---|
65 | <comment>lien vers la table capteur</comment> |
---|
66 | </column> |
---|
67 | </many-to-many> |
---|
68 | </set> |
---|
69 | <set name="requetePlatLocs" inverse="true"> |
---|
70 | <key> |
---|
71 | <column name="plateforme_id" not-null="true" unique="true"> |
---|
72 | <comment>lien vers la table plateforme</comment> |
---|
73 | </column> |
---|
74 | </key> |
---|
75 | <one-to-many class="integration.hibernate.RequetePlatLoc" /> |
---|
76 | </set> |
---|
77 | <set name="jeus" table="requete_plat_jeu"> |
---|
78 | <key> |
---|
79 | <column name="plateforme_id" not-null="true"> |
---|
80 | <comment>lien vers la table plateforme</comment> |
---|
81 | </column> |
---|
82 | </key> |
---|
83 | <many-to-many entity-name="integration.hibernate.Jeu"> |
---|
84 | <column name="jeu_id" not-null="true"> |
---|
85 | <comment>lien vers la table jeu</comment> |
---|
86 | </column> |
---|
87 | </many-to-many> |
---|
88 | </set> |
---|
89 | </class> |
---|
90 | </hibernate-mapping> |
---|