Customer.hbm.xml 2.81 KB
Newer Older
PWF-WK01\pengwufeng committed
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
<?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.Customer" table="inz_basis_customer" 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="deviceId" type="string">
			<column name="device_id" length="50"></column>
		</property>
		<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="email" type="string" >
			<column name="email" length="100"></column>
		</property>
		<property name="description" type="text">
			<column name="description" />
		</property>
		<property name="gender" type="string" >
			<column name="gender" length="50"></column>
		</property>
		<property name="age" type="int" >
			<column name="age" />
		</property>
		<property name="image" type="string" >
			<column name="image" length="500"></column>
		</property>
		<property name="state" type="string" >
			<column name="state" length="50"></column>
		</property>
		<property name="ordinal" type="int" >
			<column name="ordinal" />
		</property>
		<property name="locked" type="boolean" >
			<column name="locked" />
		</property>
		<property name="enabled" type="boolean" >
			<column name="enabled" />
		</property>
		<property name="validTime" type="timestamp">
			<column name="valid_time" />
		</property>
		<property name="invalidTime" type="timestamp">
			<column name="invalid_time" />
		</property>
		<property name="createTime" type="timestamp">
			<column name="create_time" />
		</property>
		<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>