<hibernate-mapping>
<class name="com.paperLess.GED.hibernate.mapClass.Users" table="Users" schema="dbo" catalog="PLV2">
<id name="idUser" type="integer">
<column name="idUser" />
<generator class="identity" />
</id>
<many-to-one name="groups" class="com.paperLess.GED.hibernate.mapClass.Groups" fetch="select">
<column name="idGroup" not-null="true" />
</many-to-one>
<property name="lastName" type="string">
<column name="LastName" length="30" />
</property>
<property name="firstName" type="string">
<column name="FirstName" length="30" />
</property>
<property name="mail" type="string">
<column name="mail" length="150" />
</property>
<property name="login" type="string">
<column name="Login" length="20" />
</property>
<property name="password" type="string">
<column name="password" length="20" />
</property>
<property name="type" type="string">
<column name="type" length="10" />
</property>
<property name="visualization" type="byte">
<column name="visualization" />
</property>
<property name="addition" type="byte">
<column name="addition" />
</property>
<property name="updat" type="byte">
<column name="updat" />
</property>
<property name="delet" type="byte">
<column name="delet" />
</property>
<property name="matricule" type="string">
<column name="matricule" length="20" />
</property>
<property name="direction" type="string">
<column name="direction" length="50" />
</property>
<property name="division" type="string">
<column name="division" length="50" />
</property>
<property name="department" type="string">
<column name="department" length="50" />
</property>
<property name="service" type="string">
<column name="service" length="50" />
</property>
<set name="logses" inverse="true">
<key>
<column name="idUser" not-null="true" />
</key>
<one-to-many class="com.paperLess.GED.hibernate.mapClass.Logs" />
</set>
<set name="confFaxes" inverse="true">
<key>
<column name="idUser" not-null="true" />
</key>
<one-to-many class="com.paperLess.GED.hibernate.mapClass.ConfFax" />
</set>
<set name="loanses" inverse="true">
<key>
<column name="idUser" not-null="true" />
</key>
<one-to-many class="com.paperLess.GED.hibernate.mapClass.Loans" />
</set>
</class>
</hibernate-mapping>
Partager