I extracted the hbm templates from hibernate-tools.jar but this approach
does not work:
Code:
<hbmtemplate
templateprefix=""
filepattern="../entity/{class-name}.hbm.xml"
templatepath="${templatepath}/hbm"
template="hibernate-mapping.hbm.ftl">
<property key="jdk5" value="true" />
<property key="ejb3" value="false" />
</hbmtemplate>
Code:
[hibernatetool] No signature of method getTag matches (org.hibernate.mapping.Component)
[hibernatetool] The problematic instruction:
[hibernatetool] ----------
[hibernatetool] ==> ${c2h.getTag(clazz)} [on line 1, column 2 in persistentclass.hbm.ftl]
[hibernatetool] in include "persistentclass.hbm.ftl" [on line 34, column 1 in hibernate-mapping.hbm.ftl]