1 | <?xml version="1.0"?> |
---|
2 | <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
---|
3 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
---|
4 | <!-- Generated 1 Juin 2007 15:03:29 by Hibernate Tools 3.2.0.beta7 --> |
---|
5 | <hibernate-mapping> |
---|
6 | <class name="org.medias.eccad.persistance.hibernate.domaine.Personne" table="personne" schema="public"> |
---|
7 | <id name="idPersonne" type="int"> |
---|
8 | <column name="id_personne" /> |
---|
9 | <generator class="assigned" /> |
---|
10 | </id> |
---|
11 | <property name="lastnamePersonne" type="string"> |
---|
12 | <column name="lastname_personne" length="128" /> |
---|
13 | </property> |
---|
14 | <property name="firstnamePersonne" type="string"> |
---|
15 | <column name="firstname_personne" length="128" /> |
---|
16 | </property> |
---|
17 | <property name="emailPersonne" type="string"> |
---|
18 | <column name="email_personne" length="128" /> |
---|
19 | </property> |
---|
20 | <property name="phonePersonne" type="string"> |
---|
21 | <column name="phone_personne" length="128" /> |
---|
22 | </property> |
---|
23 | <property name="faxPersonne" type="string"> |
---|
24 | <column name="fax_personne" length="128" /> |
---|
25 | </property> |
---|
26 | <set name="lienpersonnes" inverse="true"> |
---|
27 | <key> |
---|
28 | <column name="id_personne" not-null="true" /> |
---|
29 | </key> |
---|
30 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Lienpersonne" /> |
---|
31 | </set> |
---|
32 | <set name="contacts" inverse="true"> |
---|
33 | <key> |
---|
34 | <column name="id_personne" not-null="true" /> |
---|
35 | </key> |
---|
36 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Contact" /> |
---|
37 | </set> |
---|
38 | </class> |
---|
39 | </hibernate-mapping> |
---|