package com.miniframe.model.system; import com.miniframe.system.MiniserviceBaseModel; import java.io.Serializable; import java.math.BigDecimal; import javax.persistence.*; @Table(name = "d_sensor") public class DSensor extends MiniserviceBaseModel implements Serializable { /** * ID */ @Id private Integer id; /** * 管道ID */ private Integer pid; /** * 位置 */ private Float site; /** * 传感器类型 */ private String type; /** * 管道名称 */ private String pname; /** * x_coordinate */ @Column(name = "x_coordinate") private BigDecimal xCoordinate; /** * y_coordinate */ @Column(name = "y_coordinate") private BigDecimal yCoordinate; /** * z_coordinate */ @Column(name = "z_coordinate") private BigDecimal zCoordinate; /** * 管道编号 */ @Column(name = "point_code") private String pointCode; /** * 测点名称 */ @Column(name = "point_name") private String pointName; /** * 是否删除 */ private Short deleted; /** * 传感器编码 */ @Column(name = "type_code") private String typeCode; private static final long serialVersionUID = 1L; /** * 获取ID * * @return id - ID */ public Integer getId() { return id; } /** * 设置ID * * @param id ID */ public void setId(Integer id) { this.id = id; } /** * 获取管道ID * * @return pid - 管道ID */ public Integer getPid() { return pid; } /** * 设置管道ID * * @param pid 管道ID */ public void setPid(Integer pid) { this.pid = pid; } /** * 获取位置 * * @return site - 位置 */ public Float getSite() { return site; } /** * 设置位置 * * @param site 位置 */ public void setSite(Float site) { this.site = site; } /** * 获取传感器类型 * * @return type - 传感器类型 */ public String getType() { return type; } /** * 设置传感器类型 * * @param type 传感器类型 */ public void setType(String type) { this.type = type == null ? null : type.trim(); } /** * 获取管道名称 * * @return pname - 管道名称 */ public String getPname() { return pname; } /** * 设置管道名称 * * @param pname 管道名称 */ public void setPname(String pname) { this.pname = pname == null ? null : pname.trim(); } /** * 获取x_coordinate * * @return x_coordinate - x_coordinate */ public BigDecimal getxCoordinate() { return xCoordinate; } /** * 设置x_coordinate * * @param xCoordinate x_coordinate */ public void setxCoordinate(BigDecimal xCoordinate) { this.xCoordinate = xCoordinate; } /** * 获取y_coordinate * * @return y_coordinate - y_coordinate */ public BigDecimal getyCoordinate() { return yCoordinate; } /** * 设置y_coordinate * * @param yCoordinate y_coordinate */ public void setyCoordinate(BigDecimal yCoordinate) { this.yCoordinate = yCoordinate; } /** * 获取z_coordinate * * @return z_coordinate - z_coordinate */ public BigDecimal getzCoordinate() { return zCoordinate; } /** * 设置z_coordinate * * @param zCoordinate z_coordinate */ public void setzCoordinate(BigDecimal zCoordinate) { this.zCoordinate = zCoordinate; } /** * 获取管道编号 * * @return point_code - 管道编号 */ public String getPointCode() { return pointCode; } /** * 设置管道编号 * * @param pointCode 管道编号 */ public void setPointCode(String pointCode) { this.pointCode = pointCode == null ? null : pointCode.trim(); } /** * 获取测点名称 * * @return point_name - 测点名称 */ public String getPointName() { return pointName; } /** * 设置测点名称 * * @param pointName 测点名称 */ public void setPointName(String pointName) { this.pointName = pointName == null ? null : pointName.trim(); } /** * 获取是否删除 * * @return deleted - 是否删除 */ public Short getDeleted() { return deleted; } /** * 设置是否删除 * * @param deleted 是否删除 */ public void setDeleted(Short deleted) { this.deleted = deleted; } /** * 获取传感器编码 * * @return type_code - 传感器编码 */ public String getTypeCode() { return typeCode; } /** * 设置传感器编码 * * @param typeCode 传感器编码 */ public void setTypeCode(String typeCode) { this.typeCode = typeCode == null ? null : typeCode.trim(); } }