<?xml version="1.0" encoding="UTF-8"?> <hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd"> <class entity-name="com.beecode.inz.basis.datamodel.SandUser" table="xyst_dinas_basis_sand_user" optimistic-lock="version"> <tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/> <id name="id" type="uuid-binary"> <column name="id" length="16"/> <generator class="uuid2" /> </id> <version name="version" type="long" column="version"></version> <property name="username" type="string" > <column name="username" length="50" unique="true"></column> </property> <property name="password" type="string" > <column name="password" length="100"></column> </property> <property name="title" type="string" > <column name="title" length="100"></column> </property> <property name="code" type="string" > <column name="code" length="100" unique="true"></column> </property> <property name="type" type="string" > <column name="type" length="100"></column> </property> <property name="telephone" type="string" > <column name="telephone" length="20"></column> </property> <property name="org" type="string" > <column name="org" length="100"></column> </property> <property name="path" type="string" > <column name="path" length="100"></column> </property> <property name="role" type="string" > <column name="role" length="100"></column> </property> <property name="config" type="text" > <column name="config"></column> </property> <property name="description" type="text"> <column name="description" /> </property> <property name="sandId" type="uuid-binary" > <column name="sand_id" length="16"></column> </property> <property name="state" type="string" > <column name="state" length="50"></column> </property> <property name="discard" type="boolean" > <column name="discard" /> </property> <property name="enabled" type="boolean" > <column name="enabled" /> </property> <property name="createTime" type="timestamp"> <column name="create_time" /> </property> <many-to-one name="creator" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="creator_id" not-null="false"/> </many-to-one> <property name="modifyTime" type="timestamp"> <column name="modify_time" /> </property> <many-to-one name="modifier" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="modifier_id" not-null="false"/> </many-to-one> </class> </hibernate-mapping>