generate.service.service.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springfuse Show documentation
Show all versions of springfuse Show documentation
Provide basic framework and class library based on Spring Boot Framework.
package ${packageName};
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.github.herowzz.springfuse.data.jpa.dao.IBaseDao;
import com.github.herowzz.springfuse.data.jpa.service.BaseService;
import ${autowiredPackege}.${entityName}Dao;
import ${entityPackageName};
@Service
public class ${entityName}Service extends BaseService<${entityName}, ${idType}> {
@Autowired
private ${entityName}Dao ${entitySimpleName}Dao;
@Override
protected IBaseDao<${entityName}, ${idType}> getEntityDao() {
return ${entitySimpleName}Dao;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy