Hello once again,
I've created the <any> mapping in Children as you suggested as follows:
Code:
<any name="child" id-type="integer" meta-type="integer">
<meta-value value="1" class="Child1"/>
<meta-value value="2" class="Child2"/>
<column name="child_type_id"/>
<column name="foreign_child_id"/>
</any>
But it tells me it can't find a row in the remote table (say Child1) corresponding with 'that id' (No row with the given identifier exists:). When I analyse the queries I see that @P1 is filled with a long number that I cannnot see anywhere else in my database. Does the <any> mapping work with more than just the two requisite columns in its table? [sorry if I'm doing something really stupid here, it seems so close to what I want to do! :)]
Thanks again!