I do have that as my object model. Claim has a Set of Benefit objects, Benefit has a Set of BenefitChange objects. My question is how do i map that appropriately.
From my mapping file:
<?xml version="1.0"?>
<hibernate-mapping package="com.iso.wc.fst.valueobjects.reports">
<class name="Claim" table="ISO25.WCV00422">
...
<set name="benefits" table="ISO25.WCV00429">
<key>...</key>
<composite-element class="Benefit">
...
<set name="benefitChanges" table="ISO25.WCV00430">
...
</set>
</composite-element>
</set>
</class>
I'm sorry, i see now that I again pasted the wrong xml file. Here it is again, this time i validated it (now only an error with the Set of BenefitChange objects that goes away if i comment out the second set). That first set in my previous post isn't actually in my real mapping file.
Quote:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.iso.wc.fst.valueobjects.reports">
<class name="Claim" table="ISO25.WCV00422">
<composite-id name="claimReportKey" class="ClaimReportKey">
<key-property name="customerId" column="N_CO_GRP" type="string"/>
<key-property name="insdRptNum" column="N_INSRD_RPT" type="string"/>
<key-property name="jurisCd" column="C_JRSD_ST" type="string"/>
<key-property name="clmAdminFein" column="I_CLMADM_FEIN" type="string"/>
<key-property name="rptType" column="C_RPT_TYP" type="string"/>
<key-property name="mtc" column="C_MTC" type="string"/>
<key-property name="mtcDt" column="D_MTC" type="date"/>
<key-property name="rptTimestamp" column="H_RPT_TS" type="timestamp"/>
<key-property name="tempFlag" column="F_TMP" type="string"/>
</composite-id>
<set name="benefits" table="ISO25.WCV00429">
<key>
<column name="N_CO_GRP" sql-type="integer"/>
<column name="N_INSRD_RPT" sql-type="string"/>
<column name="C_JRSD_ST" sql-type="string"/>
<column name="I_CLMADM_FEIN" sql-type="string"/>
<column name="C_RPT_TYP" sql-type="string"/>
<column name="C_MTC" sql-type="string"/>
<column name="D_MTC" sql-type="date"/>
<column name="H_RPT_TS" sql-type="timestamp"/>
<column name="F_TMP" sql-type="string"/>
</key>
<composite-element class="Benefit">
<property name="cd" column="C_BENE_TYP" type="string"/>
<property name="includedInTrnsFlag" column="F_INCL_TRNS" type="string"/>
<property name="tempDeleteFlag" column="F_TMP_DEL" type="string"/>
<property name="benEvalStatus" column="C_BENE_EVAL_STUS" type="string"/>
<property name="benStatus" column="C_BENE_STUS" type="string"/>
<property name="seqNum" column="N_BENE_TYP_SEQ" type="string"/>
<property name="benLvlMTC" column="C_BENE_LVL_MTC" type="string"/>
<property name="grossWklyAmt" column="A_GRS_WKLY" type="string"/>
<property name="grossWklyAmtEffDt" column="D_GRS_WKLY_AMT_EFF" type="string"/>
<property name="netWklyAmt" column="A_NET_WKLY" type="string"/>
<property name="netWklyAmtEffDt" column="D_NET_WKLY_AMT_EFF" type="string"/>
<property name="benPeriodStartDt" column="D_BENE_PER_STRT" type="string"/>
<property name="benPeriodThroughDt" column="D_BENE_PER_THRU" type="string"/>
<property name="ClmWks" column="N_BENE_TYP_CLM_WKS" type="string"/>
<property name="clmDays" column="N_BENE_TYP_CLM_DAY" type="string"/>
<property name="amtPaid" column="A_BENE_TYP_AMT_PD" type="float"/>
<property name="paymentIssueDt" column="D_PMT_ISU" type="string"/>
<property name="partialSuspCd" column="C_PRTL_SUSPN" type="string"/>
<property name="denialTxCount" column="N_DNL_TRNS_CNT" type="integer"/>
<set name="benefitChanges" table="ISO25.WCV00430">
<key>
<column name="N_CO_GRP" sql-type="integer"/>
<column name="N_INSRD_RPT" sql-type="string"/>
<column name="C_JRSD_ST" sql-type="string"/>
<column name="I_CLMADM_FEIN" sql-type="string"/>
<column name="C_RPT_TYP" sql-type="string"/>
<column name="C_MTC" sql-type="string"/>
<column name="D_MTC" sql-type="date"/>
<column name="H_RPT_TS" sql-type="timestamp"/>
<column name="F_TMP" sql-type="string"/>
<column name="C_BENE_TYP" sql-type="string"/>
</key>
<composite-element class="BenefitChange">
<property name="benTypeCd" column="C_BENE_TYP" type="string"/>
<property name="cd" column="C_BENE_ACR" type="string"/>
<property name="includedInTrnsFlag" column="F_INCL_TRNS" type="string"/>
<property name="tempDeleteFlag" column="F_TMP_DEL" type="string"/>
<property name="ind" column="F_BENE_ACR" type="string"/>
<property name="seqNum" column="N_BENE_ACR_SEQ" type="string"/>
<property name="startDt" column="D_BENE_ACR_STRT" type="string"/>
<property name="endDt" column="D_BENE_ACR_END" type="string"/>
<property name="wklyAmt" column="A_BENE_ACR_WKLY" type="float"/>
</composite-element>
</set>
</composite-element>
</set>
</class>
</hibernate-mapping>