We have the following mapping:
Code:
<any name="risk" meta-type="string" id-type="string">
<meta-value value="Person" class="Person"/>
<meta-value value="VesselArrival" class="VesselArrival"/>
<column name="RISK_TYPE"/>
<column name="RISK_ID"/>
</any>
What I really need is the following:
Code:
<any name="risk" meta-type="string" id-type="string">
<meta-value value="Person" class="Person"/>
<meta-value value="VesselArrival" entity-name="MyVesselArrival"/>
<column name="RISK_TYPE"/>
<column name="RISK_ID"/>
</any>
Our VesselArrival POJO is mapped to multiple tables. We don't see a way to declare the entity name in the any mapping which causes the save to fail with an "unknown entity" message.
Grant