Hi,
This is my efmhibernate.cfg.xml mapping content,
<mapping resource="org/dais/efm/vo/common/BusinessEntity.hbm.xml" />
<mapping resource="org/dais/efm/vo/common/BusinessRelationship.hbm.xml" />
<mapping resource="org/dais/efm/vo/common/BusinessRole.hbm.xml" />
Below is the content in BusinessEntity.hbm.xml,
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin 2.1
http://boss.bekk.no/boss/middlegen/
http://www.hibernate.org/
-->
<class
name="org.dais.efm.vo.common.BusinessEntity"
table="BUSINESS_ENTITIES"
>
<id
name="businessEntityCode"
type="java.lang.String"
column="BUSINESS_ENTITY_CODE"
>
<generator class="assigned" />
</id>
<property
name="organisationTypeCode"
type="java.lang.String"
column="ORGANISATION_TYPE_CODE"
not-null="true"
length="10"
/>
<property
name="homePage"
type="java.lang.String"
column="HOME_PAGE"
not-null="true"
length="250"
/>
<property
name="createdBy"
type="java.lang.String"
column="CREATED_BY"
not-null="true"
length="30"
/>
<property
name="createdDate"
type="java.sql.Date"
column="CREATED_DATE"
not-null="true"
length="7"
/>
<property
name="modifiedBy"
type="java.lang.String"
column="MODIFIED_BY"
not-null="true"
length="30"
/>
<property
name="modifiedDate"
type="java.sql.Date"
column="MODIFIED_DATE"
not-null="true"
length="7"
/>
<property
name="implicitFlag"
type="java.lang.String"
column="IMPLICIT_FLAG"
not-null="true"
length="1"
/>
<!-- Associations -->
<!-- bi-directional one-to-many association to PrimaryBusinessService -->
<set
name="primaryBusinessServices"
lazy="true"
inverse="true"
cascade="none"
>
<key>
<column name="BUSINESS_ENTITY_CODE" />
</key>
<one-to-many
class="org.dais.efm.vo.common.PrimaryBusinessService"
/>
</set>
</class>
</hibernate-mapping>
Thanks in advance for your assistance.