AccountBusinessRuleBean.hbm.xml
-----------------------------------------
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name="com.elemica.api.component.account.AccountBusinessRuleBean"
table="ACCOUNT_BUSINESS_RULES"
schema="ELEMWSDEV"
>
<id
name="acctBrId"
type="long"
column="ACCT_BR_ID"
length="10"
>
<generator class="native">
<param name="sequence">ACCT_BR_ID</param>
</generator>
</id>
<property
name="businessRuleId"
type="long"
column="BUSINESS_RULE_ID"
not-null="true"
length="10"
/>
<property
name="createdBy"
type="long"
column="CREATED_BY"
not-null="true"
length="38"
/>
<property
name="dateCreated"
type="timestamp"
column="DATE_CREATED"
not-null="true"
length="7"
/>
<property
name="dateModified"
type="timestamp"
column="DATE_MODIFIED"
length="7"
/>
<property
name="modifiedBy"
type="long"
column="MODIFIED_BY"
length="38"
/>
<property
name="statusId"
type="long"
column="STATUS_ID"
not-null="true"
length="10"
/>
<!-- Associations -->
<!-- bi-directional many-to-one association to AccountBean -->
<many-to-one
name="account"
class="com.elemica.api.component.account.AccountBean"
cascade="none"
>
<column name="ACCOUNT_ID" />
</many-to-one>
</class>
</hibernate-mapping>