DAccident.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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_accident")
  6. public class DAccident extends MiniserviceBaseModel implements Serializable {
  7. @Id
  8. private Integer id;
  9. /**
  10. * 事故名称
  11. */
  12. private String name;
  13. /**
  14. * 事故类型 演练 真实
  15. */
  16. private String type;
  17. /**
  18. * 事故来源
  19. */
  20. private String source;
  21. /**
  22. * 来源ID
  23. */
  24. private String sid;
  25. /**
  26. * 灾情类型 Fire-火灾源 Water-水灾源
  27. */
  28. private String stype;
  29. /**
  30. * 求解ID
  31. */
  32. private Integer jid;
  33. private static final long serialVersionUID = 1L;
  34. /**
  35. * @return id
  36. */
  37. public Integer getId() {
  38. return id;
  39. }
  40. /**
  41. * @param id
  42. */
  43. public void setId(Integer id) {
  44. this.id = id;
  45. }
  46. /**
  47. * 获取事故名称
  48. *
  49. * @return name - 事故名称
  50. */
  51. public String getName() {
  52. return name;
  53. }
  54. /**
  55. * 设置事故名称
  56. *
  57. * @param name 事故名称
  58. */
  59. public void setName(String name) {
  60. this.name = name == null ? null : name.trim();
  61. }
  62. /**
  63. * 获取事故类型 演练 真实
  64. *
  65. * @return type - 事故类型 演练 真实
  66. */
  67. public String getType() {
  68. return type;
  69. }
  70. /**
  71. * 设置事故类型 演练 真实
  72. *
  73. * @param type 事故类型 演练 真实
  74. */
  75. public void setType(String type) {
  76. this.type = type == null ? null : type.trim();
  77. }
  78. /**
  79. * 获取事故来源
  80. *
  81. * @return source - 事故来源
  82. */
  83. public String getSource() {
  84. return source;
  85. }
  86. /**
  87. * 设置事故来源
  88. *
  89. * @param source 事故来源
  90. */
  91. public void setSource(String source) {
  92. this.source = source == null ? null : source.trim();
  93. }
  94. /**
  95. * 获取来源ID
  96. *
  97. * @return sid - 来源ID
  98. */
  99. public String getSid() {
  100. return sid;
  101. }
  102. /**
  103. * 设置来源ID
  104. *
  105. * @param sid 来源ID
  106. */
  107. public void setSid(String sid) {
  108. this.sid = sid == null ? null : sid.trim();
  109. }
  110. /**
  111. * 获取灾情类型 Fire-火灾源 Water-水灾源
  112. *
  113. * @return stype - 灾情类型 Fire-火灾源 Water-水灾源
  114. */
  115. public String getStype() {
  116. return stype;
  117. }
  118. /**
  119. * 设置灾情类型 Fire-火灾源 Water-水灾源
  120. *
  121. * @param stype 灾情类型 Fire-火灾源 Water-水灾源
  122. */
  123. public void setStype(String stype) {
  124. this.stype = stype == null ? null : stype.trim();
  125. }
  126. /**
  127. * 获取求解ID
  128. *
  129. * @return jid - 求解ID
  130. */
  131. public Integer getJid() {
  132. return jid;
  133. }
  134. /**
  135. * 设置求解ID
  136. *
  137. * @param jid 求解ID
  138. */
  139. public void setJid(Integer jid) {
  140. this.jid = jid;
  141. }
  142. }