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

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

There is a newer version: 21.16.1.0
Show newest version

package ${domainImplPackage};


import ${operationPackage}.${operationInterface};
<#if domainPackage != domainImplPackage>
import ${domainPackage}.${domainInterface};


import org.tentackle.domain.AbstractDomainOperation;
import org.tentackle.operation.DomainException;
import org.tentackle.operation.DomainOperationService;

/**
 * Domain implementation for ${operationInterface}.
 */
@DomainOperationService(${operationInterface}.class)
<#if abstractOperation == "true">
public class ${domainImplementation}, D extends ${domainImplementation}>
       extends ${superDomainImplementation} implements ${domainInterface} {
<#else>
public class ${domainImplementation} extends ${superDomainImplementation}<${operationInterface}, ${domainImplementation}> implements ${domainInterface} {


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


  /**
   * Creates a domain object for an operation.
   *
   * @param operation the operation object
   */
<#if abstractOperation == "true">
  public ${domainImplementation}(T operation) {
<#else>
  public ${domainImplementation}(${operationInterface} operation) {

    super(operation);
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy