Commit 9fc12e0 PING
committed
1 parent 04542ae commit 9fc12e0 Copy full SHA for 9fc12e0
File tree 6 files changed +36
-1
lines changed
mybatis-generator-plugin/src/main/java/com/dgbiztech/generator/plugin
6 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 9
9
import java .util .List ;
10
10
11
11
/*
12
- *
12
+ * 插件扩展的抽象类,为了让插件开发更加的简便
13
13
* @ClassName AbsBasePlugin
14
14
* @author Hongping.Zhong
15
15
* @Date 2019-02-15 14:27
Original file line number Diff line number Diff line change 10
10
11
11
import java .util .List ;
12
12
13
+ /*
14
+ * 批量增删改的插件
15
+ * @ClassName BatchGroupPlugin
16
+ * @author Hongping.Zhong
17
+ * @Date 2019-04-28 14:27
18
+ * @version 1.0.0
19
+ */
13
20
public class BatchGroupPlugin extends PluginAdapter {
14
21
15
22
private final static String BATCH_DELETE = "batchDelete" ;
Original file line number Diff line number Diff line change 12
12
13
13
import java .util .List ;
14
14
15
+ /*
16
+ * 生成getPage方法的插件
17
+ * @ClassName GetPagePlugin
18
+ * @author Hongping.Zhong
19
+ * @Date 2019-04-28 14:27
20
+ * @version 1.0.0
21
+ */
15
22
public class GetPagePlugin extends PluginAdapter {
16
23
17
24
private final static String GET_PAGE = "getPage" ;
Original file line number Diff line number Diff line change 12
12
13
13
import java .util .List ;
14
14
15
+ /*
16
+ * 根据ID获取数据的插件
17
+ * @ClassName SelectByIdsPlugin
18
+ * @author Hongping.Zhong
19
+ * @Date 2019-04-28 14:27
20
+ * @version 1.0.0
21
+ */
15
22
public class SelectByIdsPlugin extends PluginAdapter {
16
23
17
24
private final static String SELECT_BY_IDS = "selectByIds" ;
Original file line number Diff line number Diff line change 21
21
import java .io .*;
22
22
import java .util .*;
23
23
24
+ /*
25
+ * 根据配置文件和模板生成service dao controller js
26
+ * @ClassName SelectByIdsPlugin
27
+ * @author Hongping.Zhong
28
+ * @Date 2019-04-28 14:27
29
+ * @version 1.0.0
30
+ */
24
31
public class ServiceControllerPlugin extends PluginAdapter {
25
32
26
33
private String projectDir = "" ;
Original file line number Diff line number Diff line change 9
9
import java .util .Date ;
10
10
import java .util .Properties ;
11
11
12
+ /*
13
+ * 注释插件,为了给类/属性映射数据库的注释
14
+ * @ClassName CommentGenerator
15
+ * @author Hongping.Zhong
16
+ * @Date 2020-02-15 14:27
17
+ * @version 1.0.0
18
+ */
12
19
public class CommentGenerator extends EmptyCommentGenerator {
13
20
14
21
private Properties properties ;
You can’t perform that action at this time.
0 commit comments