Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Exposing a discriminator column as a property in the hbm file
  2. <discriminator type="string">
  3.     <column name="RESOURCE_TYPE" length="20" index="XIE1CPD_RESOURCE_BUNDLE_L_V"/>
  4. </discriminator>
  5. ...
  6. <subclass name="StandardResourceBundleValue" discriminator-value="STANDARD">
  7.     <property name="messageValue" type="string" column="STD_MSG_VALUE" length="400"/>
  8. </subclass>
  9. <subclass name="LargeResourceBundleValue" discriminator-value="LARGE">
  10.     <property name="messageValue" type="materialized_clob" column="LARGE_MSG_VALUE"/>
  11. </subclass>
  12.        
  13. <property name="resourceType" type="string">
  14.     <column name="RESOURCE_TYPE"/>
  15. </property>