package com.ishop.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:EB_USER_ADDRESS * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class EbUserAddress extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Long uid = null; @JsonIgnore protected boolean isset_uid = false; private String realName = null; @JsonIgnore protected boolean isset_realName = false; private String phone = null; @JsonIgnore protected boolean isset_phone = false; private String province = null; @JsonIgnore protected boolean isset_province = false; private Integer provinceId = null; @JsonIgnore protected boolean isset_provinceId = false; private String city = null; @JsonIgnore protected boolean isset_city = false; private Integer cityId = null; @JsonIgnore protected boolean isset_cityId = false; private String district = null; @JsonIgnore protected boolean isset_district = false; private Integer districtId = null; @JsonIgnore protected boolean isset_districtId = false; private String street = null; @JsonIgnore protected boolean isset_street = false; private String detail = null; @JsonIgnore protected boolean isset_detail = false; private Integer postCode = null; @JsonIgnore protected boolean isset_postCode = false; private String longitude = null; @JsonIgnore protected boolean isset_longitude = false; private String latitude = null; @JsonIgnore protected boolean isset_latitude = false; private Integer isDefault = null; @JsonIgnore protected boolean isset_isDefault = false; private Integer isDel = null; @JsonIgnore protected boolean isset_isDel = false; private Long createTime = null; @JsonIgnore protected boolean isset_createTime = false; private Long updateTime = null; @JsonIgnore protected boolean isset_updateTime = false; /** * 默认构造函数 */ public EbUserAddress() { } /** * 根据主键构造对象 */ public EbUserAddress(Long id) { this.setId(id); } /** * 设置主键值 */ @Override public void setPkValue(Object value) { this.setId((Long) value); } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; this.isset_id = true; } @JsonIgnore public boolean isEmptyId() { return this.id == null; } public Long getUid() { return this.uid; } public void setUid(Long uid) { this.uid = uid; this.isset_uid = true; } @JsonIgnore public boolean isEmptyUid() { return this.uid == null; } public String getRealName() { return this.realName; } public void setRealName(String realName) { this.realName = realName; this.isset_realName = true; } @JsonIgnore public boolean isEmptyRealName() { return this.realName == null || this.realName.length() == 0; } public String getPhone() { return this.phone; } public void setPhone(String phone) { this.phone = phone; this.isset_phone = true; } @JsonIgnore public boolean isEmptyPhone() { return this.phone == null || this.phone.length() == 0; } public String getProvince() { return this.province; } public void setProvince(String province) { this.province = province; this.isset_province = true; } @JsonIgnore public boolean isEmptyProvince() { return this.province == null || this.province.length() == 0; } public Integer getProvinceId() { return this.provinceId; } public void setProvinceId(Integer provinceId) { this.provinceId = provinceId; this.isset_provinceId = true; } @JsonIgnore public boolean isEmptyProvinceId() { return this.provinceId == null; } public String getCity() { return this.city; } public void setCity(String city) { this.city = city; this.isset_city = true; } @JsonIgnore public boolean isEmptyCity() { return this.city == null || this.city.length() == 0; } public Integer getCityId() { return this.cityId; } public void setCityId(Integer cityId) { this.cityId = cityId; this.isset_cityId = true; } @JsonIgnore public boolean isEmptyCityId() { return this.cityId == null; } public String getDistrict() { return this.district; } public void setDistrict(String district) { this.district = district; this.isset_district = true; } @JsonIgnore public boolean isEmptyDistrict() { return this.district == null || this.district.length() == 0; } public Integer getDistrictId() { return this.districtId; } public void setDistrictId(Integer districtId) { this.districtId = districtId; this.isset_districtId = true; } @JsonIgnore public boolean isEmptyDistrictId() { return this.districtId == null; } public String getStreet() { return this.street; } public void setStreet(String street) { this.street = street; this.isset_street = true; } @JsonIgnore public boolean isEmptyStreet() { return this.street == null || this.street.length() == 0; } public String getDetail() { return this.detail; } public void setDetail(String detail) { this.detail = detail; this.isset_detail = true; } @JsonIgnore public boolean isEmptyDetail() { return this.detail == null || this.detail.length() == 0; } public Integer getPostCode() { return this.postCode; } public void setPostCode(Integer postCode) { this.postCode = postCode; this.isset_postCode = true; } @JsonIgnore public boolean isEmptyPostCode() { return this.postCode == null; } public String getLongitude() { return this.longitude; } public void setLongitude(String longitude) { this.longitude = longitude; this.isset_longitude = true; } @JsonIgnore public boolean isEmptyLongitude() { return this.longitude == null || this.longitude.length() == 0; } public String getLatitude() { return this.latitude; } public void setLatitude(String latitude) { this.latitude = latitude; this.isset_latitude = true; } @JsonIgnore public boolean isEmptyLatitude() { return this.latitude == null || this.latitude.length() == 0; } public Integer getIsDefault() { return this.isDefault; } public void setIsDefault(Integer isDefault) { this.isDefault = isDefault; this.isset_isDefault = true; } @JsonIgnore public boolean isEmptyIsDefault() { return this.isDefault == null; } public Integer getIsDel() { return this.isDel; } public void setIsDel(Integer isDel) { this.isDel = isDel; this.isset_isDel = true; } @JsonIgnore public boolean isEmptyIsDel() { return this.isDel == 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("id=").append(this.id) .append("uid=").append(this.uid) .append("realName=").append(this.realName) .append("phone=").append(this.phone) .append("province=").append(this.province) .append("provinceId=").append(this.provinceId) .append("city=").append(this.city) .append("cityId=").append(this.cityId) .append("district=").append(this.district) .append("districtId=").append(this.districtId) .append("street=").append(this.street) .append("detail=").append(this.detail) .append("postCode=").append(this.postCode) .append("longitude=").append(this.longitude) .append("latitude=").append(this.latitude) .append("isDefault=").append(this.isDefault) .append("isDel=").append(this.isDel) .append("createTime=").append(this.createTime) .append("updateTime=").append(this.updateTime) .toString(); } /** * 克隆 */ public EbUserAddress $clone() { EbUserAddress eb_user_address = new EbUserAddress(); // 数据库名称 //eb_user_address.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { eb_user_address.setId(this.getId()); } // 普通属性 if (this.isset_uid) { eb_user_address.setUid(this.getUid()); } if (this.isset_realName) { eb_user_address.setRealName(this.getRealName()); } if (this.isset_phone) { eb_user_address.setPhone(this.getPhone()); } if (this.isset_province) { eb_user_address.setProvince(this.getProvince()); } if (this.isset_provinceId) { eb_user_address.setProvinceId(this.getProvinceId()); } if (this.isset_city) { eb_user_address.setCity(this.getCity()); } if (this.isset_cityId) { eb_user_address.setCityId(this.getCityId()); } if (this.isset_district) { eb_user_address.setDistrict(this.getDistrict()); } if (this.isset_districtId) { eb_user_address.setDistrictId(this.getDistrictId()); } if (this.isset_street) { eb_user_address.setStreet(this.getStreet()); } if (this.isset_detail) { eb_user_address.setDetail(this.getDetail()); } if (this.isset_postCode) { eb_user_address.setPostCode(this.getPostCode()); } if (this.isset_longitude) { eb_user_address.setLongitude(this.getLongitude()); } if (this.isset_latitude) { eb_user_address.setLatitude(this.getLatitude()); } if (this.isset_isDefault) { eb_user_address.setIsDefault(this.getIsDefault()); } if (this.isset_isDel) { eb_user_address.setIsDel(this.getIsDel()); } if (this.isset_createTime) { eb_user_address.setCreateTime(this.getCreateTime()); } if (this.isset_updateTime) { eb_user_address.setUpdateTime(this.getUpdateTime()); } return eb_user_address; } }