Hi,
is it possible to have a CustomType that contains another CustomType(using version 2.1.2)? How do I specify this in the mapping file?
Current mapping file:
Code:
<hibernate-mapping package="persistence.hibernate.testbench.customtypetest">
<class name="OrderEx" table="tbl_orders_ex" >
<id name="_id" column="uid" type="long" unsaved-value="-1" access="field" >
<generator class="native"/>
</id>
<property name="price" type="persistence.hibernate.testbench.customtypetest.MonetoryAmountExType">
<column name="value" />
<column name="currency" />
</property>
</class>
</hibernate-mapping>
This works in the case that currency is an int for example. But now I create a Currency class with a CurrencyType. How can I use this?
kind regards,
Wim