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
|