org.zodiac.develop.model.entity.CodeEntity Maven / Gradle / Ivy
package org.zodiac.develop.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
//@TableName(value = "t_platform_code")
public class CodeEntity implements Serializable {
private static final long serialVersionUID = 5711370038802573174L;
/**
* 主键
*/
@JsonSerialize(using = ToStringSerializer.class)
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 数据源主键
*/
@JsonSerialize(using = ToStringSerializer.class)
private Long datasourceId;
/**
* 模块名称
*/
private String serviceName;
/**
* 模块名称
*/
private String codeName;
/**
* 表名
*/
private String tableName;
/**
* 实体名
*/
private String tablePrefix;
/**
* 主键名
*/
private String pkName;
/**
* 基础业务模式
*/
private Integer baseMode;
/**
* 包装器模式
*/
private Integer wrapMode;
/**
* 后端包名
*/
private String packageName;
/**
* 后端路径
*/
private String apiPath;
/**
* 前端路径
*/
private String webPath;
/**
* 是否已删除
*/
@TableLogic
private Integer isDeleted;
public CodeEntity() {
super();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getDatasourceId() {
return datasourceId;
}
public void setDatasourceId(Long datasourceId) {
this.datasourceId = datasourceId;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getCodeName() {
return codeName;
}
public void setCodeName(String codeName) {
this.codeName = codeName;
}
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getTablePrefix() {
return tablePrefix;
}
public void setTablePrefix(String tablePrefix) {
this.tablePrefix = tablePrefix;
}
public String getPkName() {
return pkName;
}
public void setPkName(String pkName) {
this.pkName = pkName;
}
public Integer getBaseMode() {
return baseMode;
}
public void setBaseMode(Integer baseMode) {
this.baseMode = baseMode;
}
public Integer getWrapMode() {
return wrapMode;
}
public void setWrapMode(Integer wrapMode) {
this.wrapMode = wrapMode;
}
public String getPackageName() {
return packageName;
}
public void setPackageName(String packageName) {
this.packageName = packageName;
}
public String getApiPath() {
return apiPath;
}
public void setApiPath(String apiPath) {
this.apiPath = apiPath;
}
public String getWebPath() {
return webPath;
}
public void setWebPath(String webPath) {
this.webPath = webPath;
}
public Integer getIsDeleted() {
return isDeleted;
}
public void setIsDeleted(Integer isDeleted) {
this.isDeleted = isDeleted;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((apiPath == null) ? 0 : apiPath.hashCode());
result = prime * result + ((baseMode == null) ? 0 : baseMode.hashCode());
result = prime * result + ((codeName == null) ? 0 : codeName.hashCode());
result = prime * result + ((datasourceId == null) ? 0 : datasourceId.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((isDeleted == null) ? 0 : isDeleted.hashCode());
result = prime * result + ((packageName == null) ? 0 : packageName.hashCode());
result = prime * result + ((pkName == null) ? 0 : pkName.hashCode());
result = prime * result + ((serviceName == null) ? 0 : serviceName.hashCode());
result = prime * result + ((tableName == null) ? 0 : tableName.hashCode());
result = prime * result + ((tablePrefix == null) ? 0 : tablePrefix.hashCode());
result = prime * result + ((webPath == null) ? 0 : webPath.hashCode());
result = prime * result + ((wrapMode == null) ? 0 : wrapMode.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
CodeEntity other = (CodeEntity)obj;
if (apiPath == null) {
if (other.apiPath != null)
return false;
} else if (!apiPath.equals(other.apiPath))
return false;
if (baseMode == null) {
if (other.baseMode != null)
return false;
} else if (!baseMode.equals(other.baseMode))
return false;
if (codeName == null) {
if (other.codeName != null)
return false;
} else if (!codeName.equals(other.codeName))
return false;
if (datasourceId == null) {
if (other.datasourceId != null)
return false;
} else if (!datasourceId.equals(other.datasourceId))
return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (isDeleted == null) {
if (other.isDeleted != null)
return false;
} else if (!isDeleted.equals(other.isDeleted))
return false;
if (packageName == null) {
if (other.packageName != null)
return false;
} else if (!packageName.equals(other.packageName))
return false;
if (pkName == null) {
if (other.pkName != null)
return false;
} else if (!pkName.equals(other.pkName))
return false;
if (serviceName == null) {
if (other.serviceName != null)
return false;
} else if (!serviceName.equals(other.serviceName))
return false;
if (tableName == null) {
if (other.tableName != null)
return false;
} else if (!tableName.equals(other.tableName))
return false;
if (tablePrefix == null) {
if (other.tablePrefix != null)
return false;
} else if (!tablePrefix.equals(other.tablePrefix))
return false;
if (webPath == null) {
if (other.webPath != null)
return false;
} else if (!webPath.equals(other.webPath))
return false;
if (wrapMode == null) {
if (other.wrapMode != null)
return false;
} else if (!wrapMode.equals(other.wrapMode))
return false;
return true;
}
@Override
public String toString() {
return "CodeEntity [id=" + id + ", datasourceId=" + datasourceId + ", serviceName=" + serviceName
+ ", codeName=" + codeName + ", tableName=" + tableName + ", tablePrefix=" + tablePrefix + ", pkName="
+ pkName + ", baseMode=" + baseMode + ", wrapMode=" + wrapMode + ", packageName=" + packageName
+ ", apiPath=" + apiPath + ", webPath=" + webPath + ", isDeleted=" + isDeleted + "]";
}
}