I get this below error during FK assignment...
Foreign key (FK7C93E25F6DCEB433:APP.UTILIZEDPARTICIPANTOPPORTUNITY [TARGETED_TIMESTAMP])) must have same number of columns as the referenced primary key (APP.TARGETEDPARTICIPANTOPPORTUNITY [OPPORTUNITY_ID,BENEFICIARY_ID,TARGETED_TIMESTAMP])
Below are the hbm files for APP.TARGETEDPARTICIPANTOPPORTUNITY
and APP.UTILIZEDPARTICIPANTOPPORTUNITY ...
Please suggest if my assignment is wrong ...
APP.TARGETEDPARTICIPANTOPPORTUNITY
<composite-id >
<key-property name="opportunityID" column="OPPORTUNITY_ID" > </key-property>
<key-property name="beneficiaryID" column="BENEFICIARY_ID"></key-property>
<key-property name="targetedTimestamp" column="TARGETED_TIMESTAMP"></key-property>
</composite-id>
<property name="targetedTimestamp" column="TARGETED_TIMESTAMP" type="timestamp" insert="false" update="false"/>
<property name="beneficiaryID" column="BENEFICIARY_ID" insert="false" update="false" />
<property name="opportunityID" column="OPPORTUNITY_ID" insert="false" update="false" />
<set name="targetedTimestamp" >
<key column="TARGETED_TIMESTAMP" />
<one-to-many class="opportunity.UtilizedParticipantOpportunityObj" />
</set>
APP.UTILIZEDPARTICIPANTOPPORTUNITY
<composite-id >
<key-property name="opportunityID" column="OPPORTUNITY_ID" > </key-property>
<key-property name="beneficiaryID" column="BENEFICIARY_ID"></key-property>
<key-property name="targetedTimestamp" column="TARGETED_TIMESTAMP"></key-property>
<key-property name="callingTimestamp" column="CALLING_TIMESTAMP"></key-property>
</composite-id>
<property name="beneficiaryID" column="BENEFICIARY_ID" insert="false" update="false" />
<property name="opportunityID" column="OPPORTUNITY_ID" insert="false" update="false" />
<property name="targetedTimestamp" column="TARGETED_TIMESTAMP" type="timestamp" insert="false" update="false"/>
<property name="callingTimestamp" column="CALLING_TIMESTAMP" type="timestamp" insert="false" update="false"/>
|