|
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;
|
}
|
}
|