templates.service.impl.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stout-spring-mda Show documentation
Show all versions of stout-spring-mda Show documentation
Contains resources for generating application code that realizes a
Spring-based business object and business service architecture
package ${basePackage}.service.impl;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import ${basePackage}.bizobj.*;
import ${basePackage}.service.rest.${service.name}Service;
#foreach( $import in $service.imports )
import $import;
#end
/**
* Service implementation class for the ${service.name} service.
* @see ${basePackage}.service.rest.${service.name}Service
*
* GENERATED STUB CODE - PLEASE *DO* MODIFY
*
* Originally Generated from: ${templateName}
*/
@Service
public class ${service.name}ServiceImpl extends ${service.name}BaseServiceImpl implements ${service.name}Service {
#foreach( $operation in $service.operations )
/**
* {@inheritDoc}
*/
@Override
#if($operation.return.isPagedResponse())
protected Page<${operation.return.javaType}> ${operation.uncapitalizedName}Impl(${operation.signature}) {
#elseif($operation.return.isMany())
protected Collection<${operation.return.javaType}> ${operation.uncapitalizedName}Impl(${operation.signature}) {
#elseif($operation.isResponseTypeVoid())
protected void ${operation.uncapitalizedName}Impl(${operation.signature}) {
#else
protected ${operation.return.javaType} ${operation.uncapitalizedName}Impl(${operation.signature}) {
#end
//TODO: Add Business Logic Here
#if(!$operation.isResponseTypeVoid())
return null;
#end
}
#end
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy