Thanks for the response.
I think my problem may be with XDoclet, which I used to generate the hbm.xmls - the generated mapping contains the package name in the class element, e.g.
Code:
<hibernate-mapping>
<class polymorphism="implicit" name="hibernatebeans.HelloWorld">
....
The corresponding is as follows. It doesn't seem to make any difference whether or not I include the package name in the fileset "dir" attribute.
Code:
<target name="xdoclet2">
<mkdir dir="C:\XDoclet2\Make" />
<taskdef name="xdoclet2" classname="org.xdoclet.ant.XDocletTask" classpathref="xdoclet.path" />
</target>
<target name="remove" depends="xdoclet2">
<delete>
<fileset dir="C:\XDoclet2\HibernateMappings">
<include name="**/*.hbm.xml" />
</fileset>
</delete>
</target>
<target name="hibernate" depends="remove">
<xdoclet2>
<!-- defines the file handled by xdoclet2 -->
<fileset dir="hibsrc/hibernatebeans">
<include name="**/*.java" />
</fileset>
<!-- defines the processing of a plugin -->
<component classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" destdir="C:\XDoclet2\HibernateMappings" version="3.0" />
</xdoclet2>
</target>
Thanks for any insights.