OrganizationFollower.hbm.xml 1.23 KB
Newer Older
杨清松 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?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.xyst.dinas.biz.follower.datamodel.OrganizationFollower" table="xyst_dinas_biz_organization_follower" optimistic-lock="version">
		<tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/>
		<id name="id" type="uuid-binary" column="id" length="16">
			<generator class="uuid2" />
		</id>
		<property name="role" type="nstring" not-null="false">
			<column name="role" length="100"></column>
		</property>
		<many-to-one name="member" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
			<column name="member_id"  not-null="false"/>
		</many-to-one>
		<property name="readonly" type="boolean" not-null="false">
			<column name="readonly"></column>
		</property>
王炜晨 committed
20
		<many-to-one name="following" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select">
杨清松 committed
21 22 23 24
			<column name="following"  not-null="false"/>
		</many-to-one>
	</class>
</hibernate-mapping>