code-generator-template.service.tpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easy-spring-boot-starter Show documentation
Show all versions of easy-spring-boot-starter Show documentation
This is a starter for creating a project quickly.
There are some conventions when importing this starter, configuration could change those behaviors.
The newest version!
package ${projectBasePackage}.service;
import ${projectBasePackage}.entity.${entityName};
import com.lephix.easy.mvc.AbstractEasyRepository;
import com.lephix.easy.mvc.AbstractEasyService;
import ${projectBasePackage}.repository.${entityName}Repository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ${entityName}Service extends AbstractEasyService<${entityName}> {
@Autowired
private ${entityName}Repository repository;
@Override
public AbstractEasyRepository<${entityName}> getRepository() {
return repository;
}
}