Hi,
I am working on my 1st project using hibernate and I am stuck with this problem.
I have to map an array of objects in Class Executor which is as follows:
Class to be mapped is
Code:
Class Policy{
private Map<String, Executor> executors = new HashMap<String, Executor>
}
Class Executor{
private String name;
private Money[] amountList;
}
for which my mapping file is as follows:
Code:
<class name="Policy" table="POLICY">
<id> ... </id>
<map name="executors" table="EXECUTORS" cascade="all">
<key ... />
<index column="ID" type="string"/>
<composite-element class="Executor">
<property name="name" column="NAME"/>
...but how to map array amountList of objects type Money now...
</composite-element>
</map>
</class>
All suggestions are welcome.
Thanks.