admin
2022-04-07 211840b64fa1132d76d6dff6c779e9ba2c0c450f
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
package org.yeshi.utils.generater.entity;
 
public class ColumnData {
    private String columnName;
    private String columnMehtod;
    private String type;
    private String setColumnMehtodName;
 
 
    public ColumnData() {
    }
 
    public ColumnData(String columnName, String type) {
        this.columnName = columnName;
        this.type = type;
        this.columnMehtod = "get" + (columnName.subSequence(0, 1) + "").toUpperCase() + columnName.subSequence(1, columnName.length()) + "()";
        this.setColumnMehtodName = "set" + (columnName.subSequence(0, 1) + "").toUpperCase() + columnName.subSequence(1, columnName.length());
    }
 
    public String getColumnName() {
        return columnName;
    }
 
    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }
 
 
    public String getColumnMehtod() {
        return columnMehtod;
    }
 
    public void setColumnMehtod(String columnMehtod) {
        this.columnMehtod = columnMehtod;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getSetColumnMehtodName() {
        return setColumnMehtodName;
    }
 
    public void setSetColumnMehtodName(String setColumnMehtodName) {
        this.setColumnMehtodName = setColumnMehtodName;
    }
}