Hi,
I have a class person with many properties where one is
private Address[] addresses;
public Address[] getAddresses () {
return addresses;
}
public void setAddresses (Address[] addresses) {
this.addresses = addresses;
}
In mapping xml file where I have
<array name="addresses" fetch="join" cascade="all">
<key column="PERSON_ID" />
<index column="ADDRESS_ID" />
<one-to-many class="Address"/>
</array>
On run time, when Hibernate attempted to load data to addresses, error happened: java.lang.reflect.InvocationTargetException.
Just this exception and nothing else, even I turned Hibernate to debug mode.
Thank you in advance for any help.
Best regardsTvan
|