As a result of not being able to map a composite-id with XDoclet, i would like to include the mapping from the mergeDir.
I got this idea from the following lines form the generated .hbm.xml file;
Quote:
To add non XDoclet property mappings, create a file named
hibernate-properties-ClassName.xml
containing the additional properties and place it in your merge dir.
I excluded any @hibernate tags dealing with id's so i got no id in the generated .hbm.xml file. I put the following xml in my hibernate-properties-ClassName.xml (it's in the /etc dir):
Code:
<composite-id>
<key-many-to-one class="ClassA" name="a" column="a"/>
<key-many-to-one class="ClassB" name="b" column="b"/>
</composite-id>
The following lines are from my build.xml:
Code:
<hibernatedoclet
destdir="${classes}"
excludedtags="@version,@author,@todo,@since"
force="false"
mergedir="${basedir}/etc"
verbose="true">
<fileset dir="${src}">
<include name="**/*Impl.java"/>
</fileset>
<hibernate version="2.0"/>
</hibernatedoclet>
i can't seem to get it included. :/
Pls tell me your thoughts on this mather...