templates.pdo.PdoInterface.ftl Maven / Gradle / Ivy
Show all versions of tentackle-wizard-maven-plugin Show documentation
package ${pdoPackage};
import ${domainPackage}.${domainInterface};
import ${persistencePackage}.${persistenceInterface};
import org.tentackle.pdo.PersistentDomainObject;
import org.tentackle.pdo.Plural;
import org.tentackle.pdo.Singular;
import org.tentackle.session.ClassId;
import org.tentackle.session.TableName;
/*
* @{
<#if pdoTablename != "">
* tablename = ${pdoTablename}
#if>
<#if pdoClassId != "">
* classid = ${pdoClassId}
#if>
* mapping = $model/$tablename.map
* @}
*/
/*
* @> $mapping
*
* # ${shortDescription}
* name := $classname
<#if pdoTablename != "">
* table := $tablename
#if>
<#if pdoClassId != "">
* id := $classid
#if>
<#if pdoExtends != "">
* extends := ${pdoExtends}
#if>
<#if pdoInheritance != "NONE">
* inheritance := ${pdoInheritance}
#if>
* integrity := $integrity
*
* ## attributes
*
* ## indexes
*
* ## relations
*
* ## validations
*
* @<
*/
/**
* ${shortDescription}.
<#if longDescription != "">
*
* ${longDescription}
#if>
*/
<#if pdoTablename != "">
@TableName(value=/**/"${pdoTablename}"/**/, // @wurblet < Inject --string $tablename
mapSchema=/**/false/**/, // @wurblet < Inject $mapSchema
prefix=/**/""/**/) // @wurblet < Inject --string $tablePrefix
#if>
<#if pdoClassId != "">
@ClassId(/**/${pdoClassId}/**/) // @wurblet < Inject $classid
#if>
<#if pdoInheritance != "PLAIN">
@Singular("${pdoInterface}")
@Plural("${pdoInterface}s")
#if>
<#if pdoInheritance != "NONE">
public interface ${pdoInterface}> extends ${superPdoInterface}, ${persistenceInterface}, ${domainInterface} {
<#else>
public interface ${pdoInterface} extends ${superPdoInterface}<${pdoInterface}>, ${persistenceInterface}, ${domainInterface} {
#if>
// @wurblet(fold=expanded) modelComment ModelComment
// @wurblet uniqueDomainKey UniqueDomainKey
}