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="com.medias.database.objects.Mesure" table="mesure" schema="public"> |
---|
7 | <comment>Table contenant les mesures</comment> |
---|
8 | <id name="mesureId" type="int"> |
---|
9 | <column name="mesure_id" /> |
---|
10 | <generator class="sequence"> |
---|
11 | <param name="sequence">mesure_mesure_id_seq</param> |
---|
12 | </generator> |
---|
13 | </id> |
---|
14 | <many-to-one name="localisation" class="com.medias.database.objects.Localisation" fetch="select"> |
---|
15 | <column name="localisation_id" not-null="true"> |
---|
16 | <comment>lien vers la table localisation</comment> |
---|
17 | </column> |
---|
18 | </many-to-one> |
---|
19 | <many-to-one name="plateforme" class="com.medias.database.objects.Plateforme" fetch="select"> |
---|
20 | <column name="plateforme_id" not-null="true"> |
---|
21 | <comment>lien vers la table plateforme</comment> |
---|
22 | </column> |
---|
23 | </many-to-one> |
---|
24 | <many-to-one name="fichier" class="com.medias.database.objects.Fichier" fetch="select"> |
---|
25 | <column name="fichier_id" not-null="true"> |
---|
26 | <comment>lien vers la table fichier</comment> |
---|
27 | </column> |
---|
28 | </many-to-one> |
---|
29 | <many-to-one name="sequence" class="com.medias.database.objects.Sequence" fetch="select"> |
---|
30 | <column name="sequence_id"> |
---|
31 | <comment>lien vers la table sequence</comment> |
---|
32 | </column> |
---|
33 | </many-to-one> |
---|
34 | <many-to-one name="deltaMesure" class="com.medias.database.objects.DeltaMesure" fetch="select"> |
---|
35 | <column name="delta_mesure_id"> |
---|
36 | <comment>lien vers la table delta_mesure</comment> |
---|
37 | </column> |
---|
38 | </many-to-one> |
---|
39 | <property name="mesureDate" type="timestamp"> |
---|
40 | <column name="mesure_date" length="8" not-null="true"> |
---|
41 | <comment>date de la mesure</comment> |
---|
42 | </column> |
---|
43 | </property> |
---|
44 | <set name="valeurs" inverse="true"> |
---|
45 | <key> |
---|
46 | <column name="mesure_id" not-null="true"> |
---|
47 | <comment>lien vers la table mesure</comment> |
---|
48 | </column> |
---|
49 | </key> |
---|
50 | <one-to-many class="com.medias.database.objects.Valeur" /> |
---|
51 | </set> |
---|
52 | </class> |
---|
53 | </hibernate-mapping> |
---|