Hi,
To maintain backwards compatibility and so as I don't have to fix a very broken implementation of an idea, I need to have a composite-id in my hbn file where one of the properties is a Short (as in the wrapper object of a short, not the privative). I don't see how to successfully do this as I can manage to build one with a privative, but I don't see how to apply the property-type attribute, or whatever, to it.
At the moment I have:
<composite-id>
<meta attribute="field-description">Primary key</meta>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="use-in-equals">true</meta>
<key-property name="productRef" type="string" column="PRODUCTREF"/>
<key-property name="containerType" type="short" column="CONTAINERTYPE"/>
</composite-id>
but this just generates the privative.
I have tried searching around and looking through the documentation, but I can't seem to see anything like this.
Many Thanks,
Chris
|