DSensor.java 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import java.math.BigDecimal;
  5. import javax.persistence.*;
  6. @Table(name = "d_sensor")
  7. public class DSensor extends MiniserviceBaseModel implements Serializable {
  8. /**
  9. * ID
  10. */
  11. @Id
  12. private Integer id;
  13. /**
  14. * 管道ID
  15. */
  16. private Integer pid;
  17. /**
  18. * 位置
  19. */
  20. private Float site;
  21. /**
  22. * 传感器类型
  23. */
  24. private String type;
  25. /**
  26. * 管道名称
  27. */
  28. private String pname;
  29. /**
  30. * x_coordinate
  31. */
  32. @Column(name = "x_coordinate")
  33. private BigDecimal xCoordinate;
  34. /**
  35. * y_coordinate
  36. */
  37. @Column(name = "y_coordinate")
  38. private BigDecimal yCoordinate;
  39. /**
  40. * z_coordinate
  41. */
  42. @Column(name = "z_coordinate")
  43. private BigDecimal zCoordinate;
  44. /**
  45. * 管道编号
  46. */
  47. @Column(name = "point_code")
  48. private String pointCode;
  49. /**
  50. * 测点名称
  51. */
  52. @Column(name = "point_name")
  53. private String pointName;
  54. /**
  55. * 是否删除
  56. */
  57. private Short deleted;
  58. /**
  59. * 传感器编码
  60. */
  61. @Column(name = "type_code")
  62. private String typeCode;
  63. private static final long serialVersionUID = 1L;
  64. /**
  65. * 获取ID
  66. *
  67. * @return id - ID
  68. */
  69. public Integer getId() {
  70. return id;
  71. }
  72. /**
  73. * 设置ID
  74. *
  75. * @param id ID
  76. */
  77. public void setId(Integer id) {
  78. this.id = id;
  79. }
  80. /**
  81. * 获取管道ID
  82. *
  83. * @return pid - 管道ID
  84. */
  85. public Integer getPid() {
  86. return pid;
  87. }
  88. /**
  89. * 设置管道ID
  90. *
  91. * @param pid 管道ID
  92. */
  93. public void setPid(Integer pid) {
  94. this.pid = pid;
  95. }
  96. /**
  97. * 获取位置
  98. *
  99. * @return site - 位置
  100. */
  101. public Float getSite() {
  102. return site;
  103. }
  104. /**
  105. * 设置位置
  106. *
  107. * @param site 位置
  108. */
  109. public void setSite(Float site) {
  110. this.site = site;
  111. }
  112. /**
  113. * 获取传感器类型
  114. *
  115. * @return type - 传感器类型
  116. */
  117. public String getType() {
  118. return type;
  119. }
  120. /**
  121. * 设置传感器类型
  122. *
  123. * @param type 传感器类型
  124. */
  125. public void setType(String type) {
  126. this.type = type == null ? null : type.trim();
  127. }
  128. /**
  129. * 获取管道名称
  130. *
  131. * @return pname - 管道名称
  132. */
  133. public String getPname() {
  134. return pname;
  135. }
  136. /**
  137. * 设置管道名称
  138. *
  139. * @param pname 管道名称
  140. */
  141. public void setPname(String pname) {
  142. this.pname = pname == null ? null : pname.trim();
  143. }
  144. /**
  145. * 获取x_coordinate
  146. *
  147. * @return x_coordinate - x_coordinate
  148. */
  149. public BigDecimal getxCoordinate() {
  150. return xCoordinate;
  151. }
  152. /**
  153. * 设置x_coordinate
  154. *
  155. * @param xCoordinate x_coordinate
  156. */
  157. public void setxCoordinate(BigDecimal xCoordinate) {
  158. this.xCoordinate = xCoordinate;
  159. }
  160. /**
  161. * 获取y_coordinate
  162. *
  163. * @return y_coordinate - y_coordinate
  164. */
  165. public BigDecimal getyCoordinate() {
  166. return yCoordinate;
  167. }
  168. /**
  169. * 设置y_coordinate
  170. *
  171. * @param yCoordinate y_coordinate
  172. */
  173. public void setyCoordinate(BigDecimal yCoordinate) {
  174. this.yCoordinate = yCoordinate;
  175. }
  176. /**
  177. * 获取z_coordinate
  178. *
  179. * @return z_coordinate - z_coordinate
  180. */
  181. public BigDecimal getzCoordinate() {
  182. return zCoordinate;
  183. }
  184. /**
  185. * 设置z_coordinate
  186. *
  187. * @param zCoordinate z_coordinate
  188. */
  189. public void setzCoordinate(BigDecimal zCoordinate) {
  190. this.zCoordinate = zCoordinate;
  191. }
  192. /**
  193. * 获取管道编号
  194. *
  195. * @return point_code - 管道编号
  196. */
  197. public String getPointCode() {
  198. return pointCode;
  199. }
  200. /**
  201. * 设置管道编号
  202. *
  203. * @param pointCode 管道编号
  204. */
  205. public void setPointCode(String pointCode) {
  206. this.pointCode = pointCode == null ? null : pointCode.trim();
  207. }
  208. /**
  209. * 获取测点名称
  210. *
  211. * @return point_name - 测点名称
  212. */
  213. public String getPointName() {
  214. return pointName;
  215. }
  216. /**
  217. * 设置测点名称
  218. *
  219. * @param pointName 测点名称
  220. */
  221. public void setPointName(String pointName) {
  222. this.pointName = pointName == null ? null : pointName.trim();
  223. }
  224. /**
  225. * 获取是否删除
  226. *
  227. * @return deleted - 是否删除
  228. */
  229. public Short getDeleted() {
  230. return deleted;
  231. }
  232. /**
  233. * 设置是否删除
  234. *
  235. * @param deleted 是否删除
  236. */
  237. public void setDeleted(Short deleted) {
  238. this.deleted = deleted;
  239. }
  240. /**
  241. * 获取传感器编码
  242. *
  243. * @return type_code - 传感器编码
  244. */
  245. public String getTypeCode() {
  246. return typeCode;
  247. }
  248. /**
  249. * 设置传感器编码
  250. *
  251. * @param typeCode 传感器编码
  252. */
  253. public void setTypeCode(String typeCode) {
  254. this.typeCode = typeCode == null ? null : typeCode.trim();
  255. }
  256. }