-
Notifications
You must be signed in to change notification settings - Fork 1
/
GeneratorConstant.java
50 lines (32 loc) · 1015 Bytes
/
GeneratorConstant.java
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
package com.ld.common.generator;
import java.util.Date;
import com.ld.common.utils.DateUtil;
public class GeneratorConstant {
//configuration path
public static final String CFG_FILE_NAME="configuration.xml";
public static final String CFG_PATH="E:\\eclipse\\ws\\Smart\\src\\main\\java\\com\\ld\\common\\generator\\cfg\\";
public static final String DATE=DateUtil.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss");
public static final String AUTHOR="Cruz";
public static final String VERSION="01-00";
public enum templateType{
DAO("dao","daoId"),DTO("dto","dtoId"),SERVICE("service","serviceId"),ACTION("action","actionId");
private String id;
private String name;
private templateType(String id, String name) {
this.id = id;
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
}