Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.80 KB | None | 0 0
  1. package com.orange.newadelia.model;
  2. // Generated 3 oct. 2019 11:30:53 by Hibernate Tools 5.4.5.Final
  3.  
  4. import java.util.Date;
  5. import java.util.HashSet;
  6. import java.util.Set;
  7. import javax.persistence.Column;
  8. import javax.persistence.Entity;
  9. import javax.persistence.FetchType;
  10. import javax.persistence.GeneratedValue;
  11. import javax.persistence.Id;
  12. import javax.persistence.OneToMany;
  13. import javax.persistence.Table;
  14. import javax.persistence.Temporal;
  15. import javax.persistence.TemporalType;
  16. import org.hibernate.annotations.GenericGenerator;
  17. import org.hibernate.annotations.Parameter;
  18.  
  19. /**
  20. * TImpactedService generated by hbm2java
  21. */
  22. @Entity
  23. @Table(name = "t_impacted_service")
  24. public class TImpactedService implements java.io.Serializable {
  25.  
  26. @Id
  27. @GeneratedValue
  28. @Column(name = "id", unique = true, nullable = false)
  29. private Integer id;
  30. @Column(name = "client_type", length = 1)
  31. private Character clientType;
  32. @Temporal(TemporalType.DATE)
  33. @Column(name = "begin_date", length = 13)
  34. private Date beginDate;
  35. @Temporal(TemporalType.DATE)
  36. @Column(name = "last_change_date", length = 13)
  37. private Date lastChangeDate;
  38. @Column(name = "pto")
  39. private String pto;
  40. @Column(name = "customer_network_element")
  41. private String customerNetworkElement;
  42. @Column(name = "nd", nullable = false, length = 20)
  43. private String nd;
  44. @Column(name = "is_multiservice", nullable = false)
  45. private boolean isMultiservice;
  46. @Column(name = "service_type")
  47. private String serviceType;
  48. @Column(name = "family")
  49. private String family;
  50. @Column(name = "super_family")
  51. private String superFamily;
  52. @Column(name = "category", length = 2)
  53. private String category;
  54. @Column(name = "code")
  55. private String code;
  56. @Column(name = "state")
  57. private String state;
  58. @OneToMany(fetch = FetchType.LAZY, mappedBy = "TImpactedService")
  59. private Set<TOperationToImpactedService> TOperationToImpactedServices = new HashSet<TOperationToImpactedService>(0);
  60.  
  61. public TImpactedService() {
  62. }
  63.  
  64. public TImpactedService(String nd, boolean isMultiservice) {
  65. this.nd = nd;
  66. this.isMultiservice = isMultiservice;
  67. }
  68.  
  69. public TImpactedService(String pto) {
  70. this.pto = pto;
  71. }
  72.  
  73. private TImpactedService(TImpactedServiceBuilder builder) {
  74. this.clientType = builder.clientType;
  75. this.beginDate = builder.beginDate;
  76. this.lastChangeDate = builder.lastChangeDate;
  77. this.pto = builder.pto;
  78. this.customerNetworkElement = builder.customerNetworkElement;
  79. this.nd = builder.nd;
  80. this.isMultiservice = builder.isMultiservice;
  81. this.serviceType = builder.serviceType;
  82. this.family = builder.family;
  83. this.superFamily = builder.superFamily;
  84. this.category = builder.category;
  85. this.code = builder.code;
  86. this.state = builder.state;
  87. this.TOperationToImpactedServices = builder.TOperationToImpactedServices;
  88. }
  89.  
  90. public TImpactedService(Character clientType, Date beginDate, Date lastChangeDate, String pto,
  91. String customerNetworkElement, String nd, boolean isMultiservice, String serviceType, String family,
  92. String superFamily, String category, String code, String state,
  93. Set<TOperationToImpactedService> TOperationToImpactedServices) {
  94. this.clientType = clientType;
  95. this.beginDate = beginDate;
  96. this.lastChangeDate = lastChangeDate;
  97. this.pto = pto;
  98. this.customerNetworkElement = customerNetworkElement;
  99. this.nd = nd;
  100. this.isMultiservice = isMultiservice;
  101. this.serviceType = serviceType;
  102. this.family = family;
  103. this.superFamily = superFamily;
  104. this.category = category;
  105. this.code = code;
  106. this.state = state;
  107. this.TOperationToImpactedServices = TOperationToImpactedServices;
  108. }
  109.  
  110. @GenericGenerator(name = "com.orange.newadelia.model.TImpactedServiceIdGenerator", strategy = "org.hibernate.id.enhanced.SequenceStyleGenerator", parameters = @Parameter(name = "sequence_name", value = "t_impacted_service_id_seq"))
  111.  
  112. public Integer getId() {
  113. return this.id;
  114. }
  115.  
  116. public void setId(Integer id) {
  117. this.id = id;
  118. }
  119.  
  120. public Character getClientType() {
  121. return this.clientType;
  122. }
  123.  
  124. public void setClientType(Character clientType) {
  125. this.clientType = clientType;
  126. }
  127.  
  128. public Date getBeginDate() {
  129. return this.beginDate;
  130. }
  131.  
  132. public void setBeginDate(Date beginDate) {
  133. this.beginDate = beginDate;
  134. }
  135.  
  136. public Date getLastChangeDate() {
  137. return this.lastChangeDate;
  138. }
  139.  
  140. public void setLastChangeDate(Date lastChangeDate) {
  141. this.lastChangeDate = lastChangeDate;
  142. }
  143.  
  144. public String getPto() {
  145. return this.pto;
  146. }
  147.  
  148. public void setPto(String pto) {
  149. this.pto = pto;
  150. }
  151.  
  152. public String getCustomerNetworkElement() {
  153. return this.customerNetworkElement;
  154. }
  155.  
  156. public void setCustomerNetworkElement(String customerNetworkElement) {
  157. this.customerNetworkElement = customerNetworkElement;
  158. }
  159.  
  160. public String getNd() {
  161. return this.nd;
  162. }
  163.  
  164. public void setNd(String nd) {
  165. this.nd = nd;
  166. }
  167.  
  168. public boolean isIsMultiservice() {
  169. return this.isMultiservice;
  170. }
  171.  
  172. public void setIsMultiservice(boolean isMultiservice) {
  173. this.isMultiservice = isMultiservice;
  174. }
  175.  
  176. public String getServiceType() {
  177. return this.serviceType;
  178. }
  179.  
  180. public void setServiceType(String serviceType) {
  181. this.serviceType = serviceType;
  182. }
  183.  
  184. public String getFamily() {
  185. return this.family;
  186. }
  187.  
  188. public void setFamily(String family) {
  189. this.family = family;
  190. }
  191.  
  192. public String getSuperFamily() {
  193. return this.superFamily;
  194. }
  195.  
  196. public void setSuperFamily(String superFamily) {
  197. this.superFamily = superFamily;
  198. }
  199.  
  200. public String getCategory() {
  201. return this.category;
  202. }
  203.  
  204. public void setCategory(String category) {
  205. this.category = category;
  206. }
  207.  
  208. public String getCode() {
  209. return this.code;
  210. }
  211.  
  212. public void setCode(String code) {
  213. this.code = code;
  214. }
  215.  
  216. public String getState() {
  217. return this.state;
  218. }
  219.  
  220. public void setState(String state) {
  221. this.state = state;
  222. }
  223.  
  224. public Set<TOperationToImpactedService> getTOperationToImpactedServices() {
  225. return this.TOperationToImpactedServices;
  226. }
  227.  
  228. public void setTOperationToImpactedServices(Set<TOperationToImpactedService> TOperationToImpactedServices) {
  229. this.TOperationToImpactedServices = TOperationToImpactedServices;
  230. }
  231.  
  232.  
  233. public static class TImpactedServiceBuilder {
  234.  
  235. private Integer id;
  236. private Character clientType;
  237. private Date beginDate;
  238. private Date lastChangeDate;
  239. private String pto;
  240. private String customerNetworkElement;
  241. private String nd;
  242. private boolean isMultiservice;
  243. private String serviceType;
  244. private String family;
  245. private String superFamily;
  246. private String category;
  247. private String code;
  248. private String state;
  249. private Set<TOperationToImpactedService> TOperationToImpactedServices = new HashSet<TOperationToImpactedService>(
  250. 0);
  251.  
  252. public TImpactedServiceBuilder(TImpactedServiceBuilder tImpactedServiceBuilder) {
  253. }
  254.  
  255. public TImpactedServiceBuilder(Character clientType, Date beginDate, Date lastChangeDate, String pto,
  256. String customerNetworkElement, String nd, boolean isMultiservice, String serviceType, String family,
  257. String superFamily, String category, String code, String state,
  258. Set<TOperationToImpactedService> TOperationToImpactedServices) {
  259. this.clientType = clientType;
  260. this.beginDate = beginDate;
  261. this.lastChangeDate = lastChangeDate;
  262. this.pto = pto;
  263. this.customerNetworkElement = customerNetworkElement;
  264. this.nd = nd;
  265. this.isMultiservice = isMultiservice;
  266. this.serviceType = serviceType;
  267. this.family = family;
  268. this.superFamily = superFamily;
  269. this.category = category;
  270. this.code = code;
  271. this.state = state;
  272. this.TOperationToImpactedServices = TOperationToImpactedServices;
  273. }
  274.  
  275. public TImpactedServiceBuilder(Character clientType) {
  276. this.clientType = clientType;
  277. }
  278.  
  279. // public Integer getId() {
  280. // return id;
  281. // }
  282.  
  283. public TImpactedServiceBuilder setId(Integer id) {
  284. this.id = id;
  285. return this;
  286. }
  287.  
  288. // public Character getClientType() {
  289. // return clientType;
  290. // }
  291.  
  292. public TImpactedServiceBuilder setClientType(Character clientType) {
  293. this.clientType = clientType;
  294. return this;
  295. }
  296.  
  297. // public Date getBeginDate() {
  298. // return beginDate;
  299. // }
  300.  
  301. public TImpactedServiceBuilder setBeginDate(Date beginDate) {
  302. this.beginDate = beginDate;
  303. return this;
  304. }
  305.  
  306. // public Date getLastChangeDate() {
  307. // return lastChangeDate;
  308. // }
  309.  
  310. public TImpactedServiceBuilder setLastChangeDate(Date lastChangeDate) {
  311. this.lastChangeDate = lastChangeDate;
  312. return this;
  313. }
  314.  
  315. // public String getPto() {
  316. // return pto;
  317. // }
  318.  
  319. public TImpactedServiceBuilder setPto(String pto) {
  320. this.pto = pto;
  321. return this;
  322. }
  323.  
  324. // public String getCustomerNetworkElement() {
  325. // return customerNetworkElement;
  326. // }
  327.  
  328. public TImpactedServiceBuilder setCustomerNetworkElement(String customerNetworkElement) {
  329. this.customerNetworkElement = customerNetworkElement;
  330. return this;
  331. }
  332.  
  333. // public String getNd() {
  334. // return nd;
  335. // }
  336.  
  337. public TImpactedServiceBuilder setNd(String nd) {
  338. this.nd = nd;
  339. return this;
  340. }
  341.  
  342. // public boolean isMultiservice() {
  343. // return isMultiservice;
  344. // }
  345.  
  346. public TImpactedServiceBuilder setMultiservice(boolean isMultiservice) {
  347. this.isMultiservice = isMultiservice;
  348. return this;
  349. }
  350.  
  351. // public String getServiceType() {
  352. // return serviceType;
  353. // }
  354.  
  355. public TImpactedServiceBuilder setServiceType(String serviceType) {
  356. this.serviceType = serviceType;
  357. return this;
  358. }
  359.  
  360. // public String getFamily() {
  361. // return family;
  362. // }
  363.  
  364. public TImpactedServiceBuilder setFamily(String family) {
  365. this.family = family;
  366. return this;
  367. }
  368.  
  369. // public String getSuperFamily() {
  370. // return superFamily;
  371. // }
  372.  
  373. public TImpactedServiceBuilder setSuperFamily(String superFamily) {
  374. this.superFamily = superFamily;
  375. return this;
  376. }
  377.  
  378. // public String getCategory() {
  379. // return category;
  380. // }
  381.  
  382. public TImpactedServiceBuilder setCategory(String category) {
  383. this.category = category;
  384. return this;
  385. }
  386.  
  387. // public String getCode() {
  388. // return code;
  389. // }
  390.  
  391. public TImpactedServiceBuilder setCode(String code) {
  392. this.code = code;
  393. return this;
  394. }
  395.  
  396. // public String getState() {
  397. // return state;
  398. // }
  399.  
  400. public TImpactedServiceBuilder setState(String state) {
  401. this.state = state;
  402. return this;
  403. }
  404.  
  405. // public Set<TOperationToImpactedService> getTOperationToImpactedServices() {
  406. // return TOperationToImpactedServices;
  407. // }
  408.  
  409. public TImpactedServiceBuilder setTOperationToImpactedServices(Set<TOperationToImpactedService> tOperationToImpactedServices) {
  410. TOperationToImpactedServices = tOperationToImpactedServices;
  411. return this;
  412. }
  413.  
  414. public TImpactedService build() {
  415. return new TImpactedService(this);
  416. }
  417. public TImpactedServiceBuilder() {}
  418. }
  419. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement