The hibernate documentation demonstrates the passing of meta information into a standard Type class via the meta-value element:
Code:
<any name="anyEntity" id-type="long" meta-type="string">
<meta-value value="TBL_ANIMAL" class="Animal"/>
<meta-value value="TBL_HUMAN" class="Human"/>
<meta-value value="TBL_ALIEN" class="Alien"/>
<column name="table_name"/>
<column name="id"/>
</any>
Is it possible to pass meta information into a UserType class? eg:
Code:
<any name="anyEntity" id-type="long" meta-type="eg.custom.CustomUserType">
<meta-value value="param0" class="eg.custom.CustomClass"/>
<column name="table_name"/>
<column name="id"/>
</any>
If so how can these meta-value parameters be accessed from within the usertype?