-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to config one-to-many,many-to-one together?
PostPosted: Sun Jan 18, 2004 3:57 am 
Regular
Regular

Joined: Wed Dec 03, 2003 9:41 pm
Posts: 87
I have two tables. It is parent-child relationship. So A.a is one-to-many to B.a and B.a is many-to-one to A.a. When I config like the following, it throws Exception:
My configuration:
child:
<many-to-one name="bidPrintFeeBill" class="com.bsteel.baointl.interbid.model.BidPrintFeeBillModel" column="PRINT_FEE_BILL_ID"/>
parent:
<set name="bidPrintFee">
<key column="PRINT_FEE_BILL_ID"/>
<one-to-many class="com.bsteel.baointl.interbid.fee.model.BidPrintFeeFeeModel"/>
</set>
When I search from parent class, it throws:
[net.sf.hibernate.PropertyAccessException] net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com.bsteel.baointl.interbid.fee.model.BidPrintFeeFeeModel.bidPrintFeeBill


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 18, 2004 6:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Probably your setPrintFeeBill method does not accept a com.bsteel.baointl.interbid.model.BidPrintFeeBillModel as Parameter?


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

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.