DSensor.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import javax.persistence.*;
  5. @Table(name = "d_sensor")
  6. public class DSensor extends MiniserviceBaseModel implements Serializable {
  7. @Id
  8. private Integer id;
  9. /**
  10. * 管道ID
  11. */
  12. private Integer pid;
  13. /**
  14. * 位置
  15. */
  16. private Float site;
  17. /**
  18. * 传感器类型
  19. */
  20. private String type;
  21. private static final long serialVersionUID = 1L;
  22. /**
  23. * @return id
  24. */
  25. public Integer getId() {
  26. return id;
  27. }
  28. /**
  29. * @param id
  30. */
  31. public void setId(Integer id) {
  32. this.id = id;
  33. }
  34. /**
  35. * 获取管道ID
  36. *
  37. * @return pid - 管道ID
  38. */
  39. public Integer getPid() {
  40. return pid;
  41. }
  42. /**
  43. * 设置管道ID
  44. *
  45. * @param pid 管道ID
  46. */
  47. public void setPid(Integer pid) {
  48. this.pid = pid;
  49. }
  50. /**
  51. * 获取位置
  52. *
  53. * @return site - 位置
  54. */
  55. public Float getSite() {
  56. return site;
  57. }
  58. /**
  59. * 设置位置
  60. *
  61. * @param site 位置
  62. */
  63. public void setSite(Float site) {
  64. this.site = site;
  65. }
  66. /**
  67. * 获取传感器类型
  68. *
  69. * @return type - 传感器类型
  70. */
  71. public String getType() {
  72. return type;
  73. }
  74. /**
  75. * 设置传感器类型
  76. *
  77. * @param type 传感器类型
  78. */
  79. public void setType(String type) {
  80. this.type = type == null ? null : type.trim();
  81. }
  82. }