All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pojo.Ejb3TypeDeclaration.ftl Maven / Gradle / Ivy

There is a newer version: 5.6.15.Final
Show newest version
<#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 clazz.table.catalog?exists>
    ,catalog="${clazz.table.catalog}"

<#assign uniqueConstraint=pojo.generateAnnTableUniqueConstraint()>
<#if uniqueConstraint?has_content>
    , uniqueConstraints = ${uniqueConstraint} 
)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy