DNode.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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_node")
  6. public class DNode extends MiniserviceBaseModel implements Serializable {
  7. @Id
  8. private Integer id;
  9. private String name;
  10. private String x;
  11. private String y;
  12. private String z;
  13. @Column(name = "n_desc")
  14. private String nDesc;
  15. /**
  16. * 节点类型
  17. */
  18. private String ntype;
  19. /**
  20. * 节点编号
  21. */
  22. private String code;
  23. private static final long serialVersionUID = 1L;
  24. /**
  25. * @return id
  26. */
  27. public Integer getId() {
  28. return id;
  29. }
  30. /**
  31. * @param id
  32. */
  33. public void setId(Integer id) {
  34. this.id = id;
  35. }
  36. /**
  37. * @return name
  38. */
  39. public String getName() {
  40. return name;
  41. }
  42. /**
  43. * @param name
  44. */
  45. public void setName(String name) {
  46. this.name = name == null ? null : name.trim();
  47. }
  48. /**
  49. * @return x
  50. */
  51. public String getX() {
  52. return x;
  53. }
  54. /**
  55. * @param x
  56. */
  57. public void setX(String x) {
  58. this.x = x == null ? null : x.trim();
  59. }
  60. /**
  61. * @return y
  62. */
  63. public String getY() {
  64. return y;
  65. }
  66. /**
  67. * @param y
  68. */
  69. public void setY(String y) {
  70. this.y = y == null ? null : y.trim();
  71. }
  72. /**
  73. * @return z
  74. */
  75. public String getZ() {
  76. return z;
  77. }
  78. /**
  79. * @param z
  80. */
  81. public void setZ(String z) {
  82. this.z = z == null ? null : z.trim();
  83. }
  84. /**
  85. * @return n_desc
  86. */
  87. public String getnDesc() {
  88. return nDesc;
  89. }
  90. /**
  91. * @param nDesc
  92. */
  93. public void setnDesc(String nDesc) {
  94. this.nDesc = nDesc == null ? null : nDesc.trim();
  95. }
  96. /**
  97. * 获取节点类型
  98. *
  99. * @return ntype - 节点类型
  100. */
  101. public String getNtype() {
  102. return ntype;
  103. }
  104. /**
  105. * 设置节点类型
  106. *
  107. * @param ntype 节点类型
  108. */
  109. public void setNtype(String ntype) {
  110. this.ntype = ntype == null ? null : ntype.trim();
  111. }
  112. /**
  113. * 获取节点编号
  114. *
  115. * @return code - 节点编号
  116. */
  117. public String getCode() {
  118. return code;
  119. }
  120. /**
  121. * 设置节点编号
  122. *
  123. * @param code 节点编号
  124. */
  125. public void setCode(String code) {
  126. this.code = code == null ? null : code.trim();
  127. }
  128. }