shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
 
package com.ishop.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:EB_CITY_REGION *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class EbCityRegion extends BasePo<EbCityRegion> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    /**
     * 用于兼容老写法
     */
//    @JsonIgnore
//    public static final EbCityRegion ROW_MAPPER = new EbCityRegion();
 
    // 主键
    private Integer regionId = null;
    @JsonIgnore
    protected boolean isset_regionId = false;
 
    // 属性列表
    private Integer parentId = null;
    @JsonIgnore
    protected boolean isset_parentId = false;
 
    private String regionName = null;
    @JsonIgnore
    protected boolean isset_regionName = false;
 
    private Integer regionType = null;
    @JsonIgnore
    protected boolean isset_regionType = false;
 
    private Long createTime = null;
    @JsonIgnore
    protected boolean isset_createTime = false;
 
    private Long updateTime = null;
    @JsonIgnore
    protected boolean isset_updateTime = false;
 
    /**
     * 默认构造函数
     */
    public EbCityRegion() {
    }
 
    /**
     * 根据主键构造对象
     */
    public EbCityRegion(Integer regionId) {
        this.setRegionId(regionId);
    }
 
    /**
     * 设置主键值
     */
    @Override
    public void setPkValue(Object value) {
        this.setRegionId((Integer) value);
    }
 
    public Integer getRegionId() {
        return this.regionId;
    }
 
    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
        this.isset_regionId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyRegionId() {
        return this.regionId == null;
    }
 
    public Integer getParentId() {
        return this.parentId;
    }
 
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
        this.isset_parentId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyParentId() {
        return this.parentId == null;
    }
 
    public String getRegionName() {
        return this.regionName;
    }
 
    public void setRegionName(String regionName) {
        this.regionName = regionName;
        this.isset_regionName = true;
    }
 
    @JsonIgnore
    public boolean isEmptyRegionName() {
        return this.regionName == null || this.regionName.length() == 0;
    }
 
    public Integer getRegionType() {
        return this.regionType;
    }
 
    public void setRegionType(Integer regionType) {
        this.regionType = regionType;
        this.isset_regionType = true;
    }
 
    @JsonIgnore
    public boolean isEmptyRegionType() {
        return this.regionType == null;
    }
 
    public Long getCreateTime() {
        return this.createTime;
    }
 
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
        this.isset_createTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCreateTime() {
        return this.createTime == null;
    }
 
    public Long getUpdateTime() {
        return this.updateTime;
    }
 
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
        this.isset_updateTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUpdateTime() {
        return this.updateTime == null;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("regionId=").append(this.regionId)
                .append("parentId=").append(this.parentId)
                .append("regionName=").append(this.regionName)
                .append("regionType=").append(this.regionType)
                .append("createTime=").append(this.createTime)
                .append("updateTime=").append(this.updateTime)
                .toString();
    }
 
    /**
     * 克隆
     */
    public EbCityRegion $clone() {
        EbCityRegion eb_city_region = new EbCityRegion();
 
        // 数据库名称
        //eb_city_region.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_regionId) {
            eb_city_region.setRegionId(this.getRegionId());
        }
        // 普通属性
        if (this.isset_parentId) {
            eb_city_region.setParentId(this.getParentId());
        }
        if (this.isset_regionName) {
            eb_city_region.setRegionName(this.getRegionName());
        }
        if (this.isset_regionType) {
            eb_city_region.setRegionType(this.getRegionType());
        }
        if (this.isset_createTime) {
            eb_city_region.setCreateTime(this.getCreateTime());
        }
        if (this.isset_updateTime) {
            eb_city_region.setUpdateTime(this.getUpdateTime());
        }
        return eb_city_region;
    }
}