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.Capteur" table="capteur" schema="public"> |
---|
7 | <comment>Table contenant les capteurs associes aux mesures</comment> |
---|
8 | <id name="capteurId" type="int"> |
---|
9 | <column name="capteur_id" /> |
---|
10 | <generator class="sequence"> |
---|
11 | <param name="sequence">capteur_capteur_id_seq</param> |
---|
12 | </generator> |
---|
13 | </id> |
---|
14 | <many-to-one name="fabriquant" class="integration.hibernate.Fabriquant" fetch="select"> |
---|
15 | <column name="fabriquant_id" not-null="true"> |
---|
16 | <comment>lien vers la table fabriquant</comment> |
---|
17 | </column> |
---|
18 | </many-to-one> |
---|
19 | <many-to-one name="typeCapteur" class="integration.hibernate.TypeCapteur" fetch="select"> |
---|
20 | <column name="type_capteur_id" not-null="true"> |
---|
21 | <comment>lien vers la table type_capteur</comment> |
---|
22 | </column> |
---|
23 | </many-to-one> |
---|
24 | <many-to-one name="commentaire" class="integration.hibernate.Commentaire" fetch="select"> |
---|
25 | <column name="commentaire_id"> |
---|
26 | <comment>lien vers la table commentaire</comment> |
---|
27 | </column> |
---|
28 | </many-to-one> |
---|
29 | <property name="capteurModele" type="string"> |
---|
30 | <column name="capteur_modele" length="100" not-null="true"> |
---|
31 | <comment>modele du capteur</comment> |
---|
32 | </column> |
---|
33 | </property> |
---|
34 | <property name="capteurNumserie" type="string"> |
---|
35 | <column name="capteur_numserie" length="50" not-null="true"> |
---|
36 | <comment>numero de serie du capteur</comment> |
---|
37 | </column> |
---|
38 | </property> |
---|
39 | <property name="capteurEtalonnage" type="string"> |
---|
40 | <column name="capteur_etalonnage" length="256"> |
---|
41 | <comment>etalonnage du capteur</comment> |
---|
42 | </column> |
---|
43 | </property> |
---|
44 | <set name="valeurs" inverse="true"> |
---|
45 | <key> |
---|
46 | <column name="capteur_id" not-null="true"> |
---|
47 | <comment>lien avec la table capteur</comment> |
---|
48 | </column> |
---|
49 | </key> |
---|
50 | <one-to-many class="integration.hibernate.Valeur" /> |
---|
51 | </set> |
---|
52 | <set name="bilans" inverse="true"> |
---|
53 | <key> |
---|
54 | <column name="capteur_id" not-null="true"> |
---|
55 | <comment>lien avec la table capteur</comment> |
---|
56 | </column> |
---|
57 | </key> |
---|
58 | <one-to-many class="integration.hibernate.Bilan" /> |
---|
59 | </set> |
---|
60 | <set name="jeus" table="requete_capt_jeu"> |
---|
61 | <key> |
---|
62 | <column name="capteur_id" not-null="true"> |
---|
63 | <comment>lien vers la table capteur</comment> |
---|
64 | </column> |
---|
65 | </key> |
---|
66 | <many-to-many entity-name="integration.hibernate.Jeu"> |
---|
67 | <column name="jeu_id" not-null="true"> |
---|
68 | <comment>lien vers la table jeu</comment> |
---|
69 | </column> |
---|
70 | </many-to-many> |
---|
71 | </set> |
---|
72 | <set name="plateformes" inverse="true" table="requete_plat_capt"> |
---|
73 | <key> |
---|
74 | <column name="capteur_id" not-null="true"> |
---|
75 | <comment>lien vers la table capteur</comment> |
---|
76 | </column> |
---|
77 | </key> |
---|
78 | <many-to-many entity-name="integration.hibernate.Plateforme"> |
---|
79 | <column name="plateforme_id" not-null="true"> |
---|
80 | <comment>lien vers la table plateforme</comment> |
---|
81 | </column> |
---|
82 | </many-to-many> |
---|
83 | </set> |
---|
84 | <set name="parametres" table="requete_param_capt"> |
---|
85 | <key> |
---|
86 | <column name="capteur_id" not-null="true"> |
---|
87 | <comment>lien vers la table capteur</comment> |
---|
88 | </column> |
---|
89 | </key> |
---|
90 | <many-to-many entity-name="integration.hibernate.Parametre"> |
---|
91 | <column name="parametre_id" not-null="true"> |
---|
92 | <comment>lien vers la table parametre</comment> |
---|
93 | </column> |
---|
94 | </many-to-many> |
---|
95 | </set> |
---|
96 | </class> |
---|
97 | </hibernate-mapping> |
---|