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

templates.service.impl.vm Maven / Gradle / Ivy

Go to download

Contains resources for generating application code that realizes a Spring-based business object and business service architecture

There is a newer version: 2.7.0
Show newest version
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