Joined: Fri Feb 12, 2010 4:42 pm Posts: 1
|
<many-to-one name="vendor" class="VendorParty" column="vendor_party_id"/>
<many-to-one name="incentive" class="Incentive" insert="false" update="false"> <column name="incentive_nm"/> <column name="vendor_party_id"/> </many-to-one>
<many-to-one name="parentIncentive" class="Incentive" insert="false" update="false"> <column name="parent_incentive_nm"/> <column name="vendor_party_id"/> </many-to-one>
The issue I am running into, is that I am trying to save the value in the vendor_party_id column in the first clause. But I also need to save the incentive_nm and parent_incentive_nm to the database in the second and third clause. The vendor_party_id is needed in both the second and third clause because the Incentive class is a composite key of the incentive_nm and the vendor_party_id.
So how do I set the incentive_nm and parent_incentive_nm column to be inserted and updated = true but have the vendor_party_id not be inserted or updated except in the first clause?
If anyone has any suggestions I would appreciate it.
|
|