-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Mapping an array of object
PostPosted: Thu Aug 02, 2007 5:22 am 
Newbie

Joined: Fri Aug 04, 2006 12:27 pm
Posts: 14
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.