<?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>
<many-to-one name="following" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select">
<column name="following" not-null="false"/> </many-to-one> </class> </hibernate-mapping>