max wrote:
via filepattern.
Hi Max,
I used this code
<hbmtemplate
filepattern="{package-name}/{class-name}DAO.java"
templatepath="${root.dir}/templates"
template="daohome.ftl"
exporterclass="org.hibernate.tool.hbm2x.DAOExporter"
destdir="${hibernateGenerated.dir}/dao">
<property key="jdk5" value="false"/>
<property key="ejb3" value="false"/>
</hbmtemplate>
and I changed the template (daohome.ftl)
public class ${declarationName}DAO {
When I run the ant script, NameDAO is the class name but the file name is NameHome.java
I donĀ“t understand what is wrong.
Thanks for any help.