yes field access. I have had a look at the templates and was confused. I know i should be reading the documentation on freemarker. I tried to change it with the following
I changed the PojoFields.ftl to
// Fields
<#foreach field in pojo.getAllPropertiesIterator()><#if pojo.getMetaAttribAsBool(field, "gen-property", true)> <#if pojo.hasMetaAttribute(field, "field-description")> /**
${pojo.getFieldJavaDoc(field, 0)}
*/
</#if> <#include "Ejb3PropertyGetAnnotation.ftl"/> ${pojo.getFieldModifiers(field)} ${pojo.getJavaTypeName(field, jdk5)} ${field.name}<#if pojo.hasFieldInitializor(field, jdk5)> = ${pojo.getFieldInitialization(field, jdk5)}</#if>;
</#if>
</#foreach>
and commented out
<#include "Ejb3PropertyGetAnnotation.ftl"/>
in the PojoPropertyAccessors.ftl
Would this be the correct place to start.
Thanks
|