maybe stupid question... is it enough to locate only this special ftl (PojoPropertyAccessor) in "mytemplatefolder/" or do i have to copy the others *.ftl from the hibernate-tool.jar there?
my task look like:
Code:
<hbm2java jdk5="true" templatepath="${src}/hibernate/template/pojo" />
template:
Code:
// Property accessors PojoPropertyAccessor
<#foreach property in pojo.getAllPropertiesIterator()>
<#if pojo.getMetaAttribAsBool(property, "gen-property", true)>
<#if pojo.hasFieldJavaDoc(property)>
/**
* ${pojo.getFieldJavaDoc(property, 4)}
*/
</#if>
<#include "Ejb3PropertyGetAnnotation.ftl"/>
${pojo.getPropertyGetModifiers(property)} ${pojo.getJavaTypeName(property, jdk5)} ${pojo.getGetterSignature(property)}() {
return this.${property.name};
}
<#if pojo.hasFieldJavaDoc(property)>
/**
* ${pojo.getFieldJavaDoc(property, 4)}
*/
</#if>
<#include "Ejb3PropertyGetAnnotation.ftl"/>
${pojo.getPropertySetModifiers(property)} void set${pojo.getPropertyName(property)}(${pojo.getJavaTypeName(property, jdk5)} ${property.name}) {
this.${property.name} = ${property.name};
}
</#if>
</#foreach>
but the task didn`t recognize my template. also no error messages...
patrick