
Untitled
By: a guest on
May 8th, 2012 | syntax:
None | size: 0.63 KB | hits: 15 | expires: Never
Exposing a discriminator column as a property in the hbm file
<discriminator type="string">
<column name="RESOURCE_TYPE" length="20" index="XIE1CPD_RESOURCE_BUNDLE_L_V"/>
</discriminator>
...
<subclass name="StandardResourceBundleValue" discriminator-value="STANDARD">
<property name="messageValue" type="string" column="STD_MSG_VALUE" length="400"/>
</subclass>
<subclass name="LargeResourceBundleValue" discriminator-value="LARGE">
<property name="messageValue" type="materialized_clob" column="LARGE_MSG_VALUE"/>
</subclass>
<property name="resourceType" type="string">
<column name="RESOURCE_TYPE"/>
</property>