appfusepojo.Ejb3TypeDeclaration.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appfuse-maven-plugin Show documentation
Show all versions of appfuse-maven-plugin Show documentation
This plugin is used with Maven to generate source or resource artifacts for extending the
functionality of your AppFuse application.
<#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>