1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
| <?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping package="com.av.model">
<class
name="AvPersonne"
table="av_personne"
>
<meta attribute="sync-DAO">false</meta>
<id
name="Id"
type="java.lang.Long"
column="id"
>
<generator class="sequence"/>
</id>
<property
name="Nci"
column="nci"
type="java.lang.Long"
not-null="true"
length="10"
/>
<property
name="Nom"
column="nom"
type="string"
not-null="true"
length="32"
/>
<property
name="Prenom"
column="prenom"
type="string"
not-null="true"
length="32"
/>
<property
name="Typepersonne"
column="typepersonne"
type="string"
not-null="false"
length="32"
/>
<property
name="Datenaissance"
column="datenaissance"
type="date"
not-null="false"
length="13"
/>
<property
name="Adresse"
column="adresse"
type="string"
not-null="false"
length="128"
/>
<property
name="Email"
column="email"
type="string"
not-null="false"
length="256"
/>
<property
name="Numtel"
column="numtel"
type="string"
not-null="false"
length="32"
/>
<property
name="Loginpersonne"
column="loginpersonne"
type="string"
not-null="true"
length="32"
/>
<property
name="Passwordpersonne"
column="passwordpersonne"
type="string"
not-null="true"
length="32"
/>
<many-to-one
name="Client"
column="client"
class="AvClient"
not-null="false"
lazy="false"
>
</many-to-one>
<set name="AvAffairesByResponsable" inverse="true" lazy="false">
<key column="id"/>
<one-to-many class="AvAffaire"/>
</set>
<set name="AvAffairesByCommercial" inverse="true" lazy="false">
<key column="id"/>
<one-to-many class="AvAffaire"/>
</set>
<set name="AvDemandes" inverse="true" lazy="false">
<key column="id"/>
<one-to-many class="AvDemande"/>
</set>
<set
name="AvGroups"
table="av_composition"
cascade="all"
inverse="true"
lazy="false"
>
<key column="personne"/>
<many-to-many column="groupe" class="AvGroup"/>
</set>
</class>
</hibernate-mapping> |
Partager