source: ether_megapoli/trunk/persistence/implementation/com/medias/objects/Jeu.hbm.xml @ 139

Last change on this file since 139 was 139, checked in by vmipsl, 13 years ago

Import medias files and cleanup

File size: 8.0 KB
Line 
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.Jeu" table="jeu" schema="public">
7        <comment>Table exprimant des informations sur les jeux de donnees de la base</comment>
8        <id name="jeuId" type="int">
9            <column name="jeu_id" />
10            <generator class="sequence">
11            <param name="sequence">jeu_jeu_id_seq</param>
12            </generator>
13        </id>
14        <many-to-one name="personneByPiId" class="org.medias.megapoli.model.database.objects.Personne" fetch="select">
15            <column name="pi_id">
16                <comment>lien vers la table personne (pi)</comment>
17            </column>
18        </many-to-one>
19        <many-to-one name="personneByContactId" class="org.medias.megapoli.model.database.objects.Personne" fetch="select">
20            <column name="contact_id" not-null="true">
21                <comment>lien vers la table personne (contact technique)</comment>
22            </column>
23        </many-to-one>
24        <many-to-one name="personneByIntegrateurId" class="org.medias.megapoli.model.database.objects.Personne" fetch="select">
25            <column name="integrateur_id" not-null="true">
26                <comment>lien vers la table personne (integrateur)</comment>
27            </column>
28        </many-to-one>
29        <many-to-one name="organisme" class="org.medias.megapoli.model.database.objects.Organisme" fetch="select">
30            <column name="organisme_id" not-null="true">
31                <comment>lien vers la table organisme</comment>
32            </column>
33        </many-to-one>
34        <many-to-one name="commentaire" class="org.medias.megapoli.model.database.objects.Commentaire" fetch="select">
35            <column name="commentaire_id">
36                <comment>lien vers la table commentaire</comment>
37            </column>
38        </many-to-one>
39        <many-to-one name="categorie" class="org.medias.megapoli.model.database.objects.Categorie" fetch="select">
40            <column name="categorie_id" not-null="true">
41                <comment>lien vers la table categorie</comment>
42            </column>
43        </many-to-one>
44        <property name="jeuNom" type="string">
45            <column name="jeu_nom" length="50" not-null="true" unique="true">
46                <comment>nom du jeu</comment>
47            </column>
48        </property>
49        <property name="jeuDated" type="timestamp">
50            <column name="jeu_dated" length="8">
51                <comment>date de debut du jeu de donnees</comment>
52            </column>
53        </property>
54        <property name="jeuDatef" type="timestamp">
55            <column name="jeu_datef" length="8">
56                <comment>date de fin du jeu de donnees</comment>
57            </column>
58        </property>
59        <property name="jeuLatmin" type="java.lang.Integer">
60            <column name="jeu_latmin">
61                <comment>latitude minimale</comment>
62            </column>
63        </property>
64        <property name="jeuLatmax" type="java.lang.Integer">
65            <column name="jeu_latmax">
66                <comment>latitude maximale</comment>
67            </column>
68        </property>
69        <property name="jeuLonmin" type="java.lang.Integer">
70            <column name="jeu_lonmin">
71                <comment>longitude minimale</comment>
72            </column>
73        </property>
74        <property name="jeuLonmax" type="java.lang.Integer">
75            <column name="jeu_lonmax">
76                <comment>longitude maximale</comment>
77            </column>
78        </property>
79        <property name="jeuAltmin" type="java.lang.Integer">
80            <column name="jeu_altmin">
81                <comment>altitude minimale</comment>
82            </column>
83        </property>
84        <property name="jeuAltmax" type="java.lang.Integer">
85            <column name="jeu_altmax">
86                <comment>altitude maximale</comment>
87            </column>
88        </property>
89        <property name="jeuHsmin" type="java.lang.Integer">
90            <column name="jeu_hsmin">
91                <comment>hauteur sol minimale</comment>
92            </column>
93        </property>
94        <property name="jeuHsmax" type="java.lang.Integer">
95            <column name="jeu_hsmax">
96                <comment>hauteur sol maximale</comment>
97            </column>
98        </property>
99        <property name="jeuDateinser" type="timestamp">
100            <column name="jeu_dateinser" length="8" not-null="true">
101                <comment>date d'insertion du jeu de donnees</comment>
102            </column>
103        </property>
104        <property name="jeuDatemodif" type="timestamp">
105            <column name="jeu_datemodif" length="8">
106                <comment>date de modification du jeu de donnees</comment>
107            </column>
108        </property>
109        <property name="jeuNumversion" type="string">
110            <column name="jeu_numversion" length="10">
111                <comment>numéro de version</comment>
112            </column>
113        </property>
114        <set name="plateformes" table="requete_plat_jeu">
115            <key>
116                <column name="jeu_id" not-null="true">
117                    <comment>lien vers la table jeu</comment>
118                </column>
119            </key>
120            <many-to-many entity-name="org.medias.megapoli.model.database.objects.Plateforme">
121                <column name="plateforme_id" not-null="true">
122                    <comment>lien vers la table plateforme</comment>
123                </column>
124            </many-to-many>
125        </set>
126        <set name="bilans" inverse="true">
127            <key>
128                <column name="jeu_id" not-null="true">
129                    <comment>lien vers la table jeu</comment>
130                </column>
131            </key>
132            <one-to-many class="org.medias.megapoli.model.database.objects.Bilan" />
133        </set>
134        <set name="capteurs" table="requete_capt_jeu">
135            <key>
136                <column name="jeu_id" not-null="true">
137                    <comment>lien vers la table jeu</comment>
138                </column>
139            </key>
140            <many-to-many entity-name="org.medias.megapoli.model.database.objects.Capteur">
141                <column name="capteur_id" not-null="true">
142                    <comment>lien vers la table capteur</comment>
143                </column>
144            </many-to-many>
145        </set>
146        <set name="parametres" table="requete_param_jeu">
147            <key>
148                <column name="jeu_id" not-null="true">
149                    <comment>lien vers la table jeu</comment>
150                </column>
151            </key>
152            <many-to-many entity-name="org.medias.megapoli.model.database.objects.Parametre">
153                <column name="parametre_id" not-null="true">
154                    <comment>lien vers la table parametre</comment>
155                </column>
156            </many-to-many>
157        </set>
158        <set name="sequences" inverse="true">
159            <key>
160                <column name="jeu_id" not-null="true">
161                    <comment>lien vers la table jeu</comment>
162                </column>
163            </key>
164            <one-to-many class="org.medias.megapoli.model.database.objects.Sequence" />
165        </set>
166        <set name="fichiers" inverse="true">
167            <key>
168                <column name="jeu_id" not-null="true">
169                    <comment>lien vers la table jeu</comment>
170                </column>
171            </key>
172            <one-to-many class="org.medias.megapoli.model.database.objects.Fichier" />
173        </set>
174        <set name="requeteNbvalsJeus" inverse="true">
175            <key>
176                <column name="jeu_id" not-null="true" unique="true">
177                    <comment>lien vers la table jeu</comment>
178                </column>
179            </key>
180            <one-to-many class="org.medias.megapoli.model.database.objects.RequeteNbvalsJeu" />
181        </set>
182    </class>
183</hibernate-mapping>
Note: See TracBrowser for help on using the repository browser.