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

templates.pdo.PdoInterface.ftl Maven / Gradle / Ivy

There is a newer version: 21.16.1.0
Show newest version

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 pdoClassId != "">
 * classid   = ${pdoClassId}

 * mapping   = $model/$tablename.map
 * @}
 */

/*
 * @> $mapping
 *
 * # ${shortDescription}
 * name := $classname
<#if pdoTablename != "">
 * table := $tablename

<#if pdoClassId != "">
 * id := $classid

<#if pdoExtends != "">
 * extends := ${pdoExtends}

<#if pdoInheritance != "NONE">
 * inheritance := ${pdoInheritance}

 * integrity := $integrity
 *
 * ## attributes
 *
 * ## indexes
 *
 * ## relations
 *
 * ## validations
 *
 * @<
 */

/**
 * ${shortDescription}.
<#if longDescription != "">
 * 

* ${longDescription} */ <#if pdoTablename != ""> @TableName(value=/**/"${pdoTablename}"/**/, // @wurblet < Inject --string $tablename mapSchema=/**/false/**/, // @wurblet < Inject $mapSchema prefix=/**/""/**/) // @wurblet < Inject --string $tablePrefix <#if pdoClassId != ""> @ClassId(/**/${pdoClassId}/**/) // @wurblet < Inject $classid <#if pdoInheritance != "PLAIN"> @Singular("${pdoInterface}") @Plural("${pdoInterface}s") <#if pdoInheritance != "NONE"> public interface ${pdoInterface}> extends ${superPdoInterface}, ${persistenceInterface}, ${domainInterface} { <#else> public interface ${pdoInterface} extends ${superPdoInterface}<${pdoInterface}>, ${persistenceInterface}, ${domainInterface} { // @wurblet(fold=expanded) modelComment ModelComment // @wurblet uniqueDomainKey UniqueDomainKey }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy