Hibernate version: 3.2
Hi misters,
I use the template named Ejb3TypeDeclaration.ftl, in which there is the following code:
Code:
<#if ejb3?if_exists>
<#if pojo.isComponent()>
@${pojo.importType("javax.persistence.Embeddable")}
<#else>
@${pojo.importType("javax.persistence.Entity")}
@${pojo.importType("javax.persistence.Table")}(name="${clazz.table.name}"
<#if clazz.table.schema?exists>
,schema="${clazz.table.schema}"
</#if><#if clazz.table.catalog?exists>
,catalog="${clazz.table.catalog}"
</#if>
<#if pojo.needsAnnTableUniqueConstraints()>
, uniqueConstraints = { ${pojo.generateAnnTableUniqueConstraint()} }
</#if>)
</#if>
</#if>
I use these file in my template, and there is the exception:
Code:
freemarker.core.InvalidReferenceException: Expression pojo.needsAnnTableUniqueConstraints is undefined on line 12, column 6 in mypojo/Ejb3TypeDeclaration.ftl.
My database is hsql, with two simple tables and a join table.
Thanks,
Regards,
Slimane.