|
package com.consum.model.po;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.walker.jdbc.BasePo;
|
|
/**
|
* 表名:BASE_WAREHOUSE_MANAGER *
|
* @author genrator
|
*/
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
public class BaseWarehouseManager extends BasePo<BaseWarehouseManager> {
|
// 序列化版本号
|
private static final long serialVersionUID = 1L;
|
|
// 主键
|
private Long id = null;
|
@JsonIgnore
|
protected boolean isset_id = false;
|
|
// 属性列表
|
private Long managerId = null;
|
@JsonIgnore
|
protected boolean isset_managerId = false;
|
|
private String managerName = null;
|
@JsonIgnore
|
protected boolean isset_managerName = false;
|
|
private Long baseWarehouseId = null;
|
@JsonIgnore
|
protected boolean isset_baseWarehouseId = false;
|
|
/**
|
* 默认构造函数
|
*/
|
public BaseWarehouseManager() {
|
}
|
|
/**
|
* 根据主键构造对象
|
*/
|
public BaseWarehouseManager(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 getManagerId() {
|
return this.managerId;
|
}
|
|
public void setManagerId(Long managerId) {
|
this.managerId = managerId;
|
this.isset_managerId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyManagerId() {
|
return this.managerId == null;
|
}
|
|
public String getManagerName() {
|
return this.managerName;
|
}
|
|
public void setManagerName(String managerName) {
|
this.managerName = managerName;
|
this.isset_managerName = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyManagerName() {
|
return this.managerName == null || this.managerName.length() == 0;
|
}
|
|
public Long getBaseWarehouseId() {
|
return this.baseWarehouseId;
|
}
|
|
public void setBaseWarehouseId(Long baseWarehouseId) {
|
this.baseWarehouseId = baseWarehouseId;
|
this.isset_baseWarehouseId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyBaseWarehouseId() {
|
return this.baseWarehouseId == null;
|
}
|
|
/**
|
* 重写 toString() 方法
|
*/
|
@Override
|
public String toString() {
|
return new StringBuilder()
|
.append("id=").append(this.id)
|
.append("managerId=").append(this.managerId)
|
.append("managerName=").append(this.managerName)
|
.append("baseWarehouseId=").append(this.baseWarehouseId)
|
.toString();
|
}
|
|
/**
|
* 克隆
|
*/
|
public BaseWarehouseManager $clone() {
|
BaseWarehouseManager base_warehouse_manager = new BaseWarehouseManager();
|
|
// 数据库名称
|
//base_warehouse_manager.setDatabaseName_(this.getDatabaseName_());
|
|
// 主键
|
if (this.isset_id) {
|
base_warehouse_manager.setId(this.getId());
|
}
|
// 普通属性
|
if (this.isset_managerId) {
|
base_warehouse_manager.setManagerId(this.getManagerId());
|
}
|
if (this.isset_managerName) {
|
base_warehouse_manager.setManagerName(this.getManagerName());
|
}
|
if (this.isset_baseWarehouseId) {
|
base_warehouse_manager.setBaseWarehouseId(this.getBaseWarehouseId());
|
}
|
return base_warehouse_manager;
|
}
|
}
|