Also, if I change the Capabilities->Layer relation to
Code:
<many-to-one name="layers" class="edina.clive.domain.Layer">
<column name="layerName"/>
<column name="productName"/><!-- REPEATED COLUMN --> </many-to-one>
I get a repeated column error because (I think) productName is part of the natural primary key of Capabilities, and instructs me to do this
Code:
<many-to-one name="layers" class="edina.clive.domain.Layer" insert="false" update="false">
<column name="layerName"/>
<column name="productName"/>
</many-to-one>
Which then doesn't update anything in the database except the Capabilities object![/code]