f64c6c7ba252771b1bc5564129bdc96b36e056ff.svn-base
1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="utf-8"?>
<template>
<name>service</name>
<filePath>src/main/java/${packageName}/${moduleName}/service/${subModuleName}</filePath>
<fileName>${ClassName}Service.java</fileName>
<content><![CDATA[
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package ${packageName}.${moduleName}.service<#if subModuleName != "">.${subModuleName}</#if>;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import ${packageName}.${moduleName}.entity<#if subModuleName != "">.${subModuleName}</#if>.${ClassName};
import ${packageName}.${moduleName}.dao<#if subModuleName != "">.${subModuleName}</#if>.${ClassName}Dao;
/**
* ${functionName}Service
* @author ${functionAuthor}
* @version ${functionVersion}
*/
@Service
@Transactional(readOnly = true)
public class ${ClassName}Service extends CrudService<${ClassName}Dao, ${ClassName}> {
public ${ClassName} get(String id) {
return super.get(id);
}
public List<${ClassName}> findList(${ClassName} ${className}) {
return super.findList(${className});
}
public Page<${ClassName}> findPage(Page<${ClassName}> page, ${ClassName} ${className}) {
return super.findPage(page, ${className});
}
@Transactional(readOnly = false)
public void save(${ClassName} ${className}) {
super.save(${className});
}
@Transactional(readOnly = false)
public void delete(${ClassName} ${className}) {
super.delete(${className});
}
}]]>
</content>
</template>