Hello,
I wanted to submit a bug, but according the related readme, it's better to submit it here first as "99% of bugs found by...". As I'm not really familiar with this stuff, it's maybe a good idea :-)
Hibernate version:
Hibernate-Version: 3.2.5.ga
Hibernate Tools 3.2.2.GA
Related file:
PojoConstructors.ftl when using hibernate-reverse-engineering
Problem:
When I use set the meta-attribute "gen-property" for a column to false, the constructed java-class doesn't have the field anymore, but the full-constructor has.
When I change the related part...
...from
Code:
<#foreach field in pojo.getPropertiesForFullConstructor()>
this.${field.name} = ${field.name};
</#foreach>
...to...
Code:
<#foreach field in pojo.getPropertiesForFullConstructor()>
<#if pojo.getMetaAttribAsBool(field, "gen-property", true)>
this.${field.name} = ${field.name};
</#if>
</#foreach>
...it is all fine.
Regards
Volker