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="org.medias.megapoli.model.database.objects.Localisation" table="localisation" schema="public"> |
---|
7 | <comment>Table indiquant les localisations des mesures</comment> |
---|
8 | <id name="localisationId" type="int"> |
---|
9 | <column name="localisation_id" /> |
---|
10 | <generator class="sequence"> |
---|
11 | <param name="sequence">localisation_localisation_id_seq</param> |
---|
12 | </generator> |
---|
13 | </id> |
---|
14 | <many-to-one name="flagByAltitudeFlag" class="org.medias.megapoli.model.database.objects.Flag" fetch="select"> |
---|
15 | <column name="altitude_flag"> |
---|
16 | <comment>lien vers la table flag (contrainte sur l'altitude)</comment> |
---|
17 | </column> |
---|
18 | </many-to-one> |
---|
19 | <many-to-one name="flagByLatlonFlag" class="org.medias.megapoli.model.database.objects.Flag" fetch="select"> |
---|
20 | <column name="latlon_flag"> |
---|
21 | <comment>lien vers la table flag (contrainte sur la latitude/longitude)</comment> |
---|
22 | </column> |
---|
23 | </many-to-one> |
---|
24 | <property name="localisationLat" type="int"> |
---|
25 | <column name="localisation_lat" not-null="true"> |
---|
26 | <comment>latitude</comment> |
---|
27 | </column> |
---|
28 | </property> |
---|
29 | <property name="localisationLon" type="int"> |
---|
30 | <column name="localisation_lon" not-null="true"> |
---|
31 | <comment>longitude</comment> |
---|
32 | </column> |
---|
33 | </property> |
---|
34 | <property name="localisationAlt" type="int"> |
---|
35 | <column name="localisation_alt" not-null="true"> |
---|
36 | <comment>altitude</comment> |
---|
37 | </column> |
---|
38 | </property> |
---|
39 | <property name="localisationHs" type="java.lang.Integer"> |
---|
40 | <column name="localisation_hs"> |
---|
41 | <comment>hauteur par rapport au sol</comment> |
---|
42 | </column> |
---|
43 | </property> |
---|
44 | <set name="mesures" inverse="true"> |
---|
45 | <key> |
---|
46 | <column name="localisation_id" not-null="true"> |
---|
47 | <comment>lien vers la table localisation</comment> |
---|
48 | </column> |
---|
49 | </key> |
---|
50 | <one-to-many class="org.medias.megapoli.model.database.objects.Mesure" /> |
---|
51 | </set> |
---|
52 | </class> |
---|
53 | </hibernate-mapping> |
---|