I'm having trouble with the hbm2java tool generating a composite-id class.
I've got a class mapped in my hbm, foo.Bar...and I want to have the class that hbm2java generates from my hbm named foo.BaseBar so I can extend it. No problem, I'll just use the following:
Code:
<meta attribute="generated-class">foo.BaseBar</meta>
This typically works fine for me, but the class below has a composite-id in it and the composite id doesn't get generated when I have the "generated-class" attribute in my mapping file.
Can someone tell me how to get the composite-id generated?
Is this a bug or a "feature"? :)
Mapping documents:Code:
<hibernate-mapping>
<meta attribute="generated-class">foo.BaseBar</meta>
<class
name="foo.Bar"
table="bar"
>
<composite-id name="comp_id" class="foo.BarPK">
<key-property name="id1" column="id1" type="java.lang.String" />
<key-property name="id2" column="id2" type="java.lang.String" />
</composite-id>
</class>
Thx,
Jon