DNode.java 2.0 KB

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