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

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

There is a newer version: 21.16.1.0
Show newest version

package ${domainImplPackage};


import ${pdoPackage}.${pdoInterface};
<#if domainPackage != domainImplPackage>
import ${domainPackage}.${domainInterface};


import org.tentackle.domain.AbstractDomainObject;
import org.tentackle.pdo.DomainException;
import org.tentackle.pdo.DomainObjectService;


/**
 * Domain implementation for ${pdoInterface}.
 */
@DomainObjectService(${pdoInterface}.class)
<#if pdoInheritance != "NONE">
public class ${domainImplementation}, D extends ${domainImplementation}>
       extends ${superDomainImplementation} implements ${domainInterface} {
<#else>
public class ${domainImplementation} extends ${superDomainImplementation}<${pdoInterface}, ${domainImplementation}> implements ${domainInterface} {


  /** serial version UID. */
  private static final long serialVersionUID = 1L;


  /**
   * Creates a domain object for a PDO.
   *
   * @param pdo the persistent domain object
   */
<#if pdoInheritance != "NONE">
  public ${domainImplementation}(T pdo) {
<#else>
  public ${domainImplementation}(${pdoInterface} pdo) {

    super(pdo);
  }

  /**
   * Creates a domain object.
   */
  public ${domainImplementation}() {
    super();
  }


  // @wurblet domainMethods DomainMethods

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy