Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 10.14 KB | None | 0 0
  1. Found a 102 line (356 tokens) duplication in the following files:
  2. Starting at line 36 of Bnowak\TbInsurance.java
  3. Starting at line 41 of Samba\NZTP\TbInsurance.java
  4. Starting at line 41 of Samba\NZTP.06.103395-Klink-Bartosz\TbInsurance.java
  5.  
  6. query = "SELECT tbi from TbInsurance tbi WHERE tbi.customerId.id = :cust AND tbi.modelId.model = :model AND (tbi.dateFrom > :date1 OR tbi.dateTo < :date2)")})
  7.  
  8. public class TbInsurance implements Serializable
  9. {
  10.  
  11. private static final long serialVersionUID = 1L;
  12. @Id
  13. @Basic(optional = false)
  14. @NotNull
  15. @Column(name = "Id")
  16. private Integer id;
  17. @Column(name = "dateFrom")
  18. @Temporal(TemporalType.TIMESTAMP)
  19. private Date dateFrom;
  20. @Column(name = "dateTo")
  21. @Temporal(TemporalType.TIMESTAMP)
  22. private Date dateTo;
  23. @JoinColumn(name = "customerId", referencedColumnName = "Id")
  24. @ManyToOne
  25. private TbCustomer customerId;
  26. @JoinColumn(name = "modelId", referencedColumnName = "Id")
  27. @ManyToOne
  28. private TbModel modelId;
  29.  
  30. public TbInsurance() {
  31. }
  32.  
  33. public TbInsurance(Integer id) {
  34. this.id = id;
  35. }
  36.  
  37. public Integer getId() {
  38. return id;
  39. }
  40.  
  41. public void setId(Integer id) {
  42. this.id = id;
  43. }
  44.  
  45. public Date getDateFrom() {
  46. return dateFrom;
  47. }
  48.  
  49. public void setDateFrom(Date dateFrom) {
  50. this.dateFrom = dateFrom;
  51. }
  52.  
  53. public Date getDateTo() {
  54. return dateTo;
  55. }
  56.  
  57. public void setDateTo(Date dateTo) {
  58. this.dateTo = dateTo;
  59. }
  60.  
  61. public TbCustomer getCustomerId() {
  62. return customerId;
  63. }
  64.  
  65. public void setCustomerId(TbCustomer customerId) {
  66. this.customerId = customerId;
  67. }
  68.  
  69. public TbModel getModelId() {
  70. return modelId;
  71. }
  72.  
  73. public void setModelId(TbModel modelId) {
  74. this.modelId = modelId;
  75. }
  76.  
  77. @Override
  78. public int hashCode() {
  79. int hash = 0;
  80. hash += (id != null ? id.hashCode() : 0);
  81. return hash;
  82. }
  83.  
  84. @Override
  85. public boolean equals(Object object)
  86. {
  87. if (!(object instanceof TbInsurance))
  88. {
  89. return false;
  90. }
  91.  
  92. TbInsurance other = (TbInsurance) object;
  93.  
  94. if ((this.id == null && other.id != null) ||
  95. (this.id != null && !this.id.equals(other.id)))
  96. {
  97. return false;
  98. }
  99. return true;
  100. }
  101.  
  102. @Override
  103. public String toString()
  104. {
  105. return "ztp_06a.TbInsurance[ id=" + id + " ]";
  106. }
  107. }
  108. Znaleziono plagiat:
  109.  
  110.  
  111. Found a 95 line (322 tokens) duplication in the following files:
  112. Starting at line 33 of Bnowak\TbCustomer.java
  113. Starting at line 38 of Samba\NZTP\TbCustomer.java
  114. Starting at line 38 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
  115.  
  116. query = "SELECT tbc FROM TbCustomer tbc WHERE tbc.id = :id")
  117. })
  118.  
  119. public class TbCustomer implements Serializable
  120. {
  121. private static final long serialVersionUID = 1L;
  122.  
  123. @Id
  124. @Basic(optional = false)
  125. @NotNull
  126. @Column(name = "Id")
  127. private Integer id;
  128. @Size(max = 255)
  129. @Column(name = "firstName")
  130. private String firstName;
  131. @Size(max = 255)
  132. @Column(name = "lastName")
  133. private String lastName;
  134. @OneToMany(mappedBy = "customerId")
  135. private Collection tbInsuranceCollection;
  136.  
  137. public TbCustomer() {
  138. }
  139.  
  140. public TbCustomer(Integer id) {
  141. this.id = id;
  142. }
  143.  
  144. public Integer getId() {
  145. return id;
  146. }
  147.  
  148. public void setId(Integer id) {
  149. this.id = id;
  150. }
  151.  
  152. public String getFirstName() {
  153. return firstName;
  154. }
  155.  
  156. public void setFirstName(String firstName) {
  157. this.firstName = firstName;
  158. }
  159.  
  160. public String getLastName() {
  161. return lastName;
  162. }
  163.  
  164. public void setLastName(String lastName) {
  165. this.lastName = lastName;
  166. }
  167.  
  168. @XmlTransient
  169. public Collection getTbInsuranceCollection() {
  170. return tbInsuranceCollection;
  171. }
  172.  
  173. public void setTbInsuranceCollection(Collection
  174. tbInsuranceCollection) {
  175. this.tbInsuranceCollection = tbInsuranceCollection;
  176. }
  177.  
  178. @Override
  179. public int hashCode()
  180. {
  181. int hash = 0;
  182. hash += (id != null ? id.hashCode() : 0);
  183. return hash;
  184. }
  185.  
  186. @Override
  187. public boolean equals(Object object)
  188. {
  189. if (!(object instanceof TbCustomer))
  190. {
  191. return false;
  192. }
  193.  
  194. TbCustomer other = (TbCustomer) object;
  195.  
  196. if ((this.id == null && other.id != null) ||
  197. (this.id != null && !this.id.equals(other.id)))
  198. {
  199. return false;
  200. }
  201. return true;
  202. }
  203.  
  204. @Override
  205. public String toString()
  206. {
  207. return "ztp_06a.TbCustomer[ id=" + id + " ]";
  208. }
  209.  
  210. }
  211. Znaleziono plagiat:
  212.  
  213.  
  214. Found a 82 line (282 tokens) duplication in the following files:
  215. Starting at line 31 of Bnowak\TbModel.java
  216. Starting at line 36 of Samba\NZTP\TbModel.java
  217. Starting at line 36 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
  218.  
  219. query = "SELECT tbm FROM TbModel tbm")
  220. })
  221.  
  222. public class TbModel implements Serializable
  223. {
  224.  
  225. private static final long serialVersionUID = 1L;
  226. @Id
  227. @Basic(optional = false)
  228. @NotNull
  229. @Column(name = "Id")
  230. private Integer id;
  231. @Size(max = 255)
  232. @Column(name = "model")
  233. private String model;
  234. @OneToMany(mappedBy = "modelId")
  235. private Collection tbInsuranceCollection;
  236.  
  237. public TbModel() {
  238. }
  239.  
  240. public TbModel(Integer id) {
  241. this.id = id;
  242. }
  243.  
  244. public Integer getId() {
  245. return id;
  246. }
  247.  
  248. public void setId(Integer id) {
  249. this.id = id;
  250. }
  251.  
  252. public String getModel() {
  253. return model;
  254. }
  255.  
  256. public void setModel(String model) {
  257. this.model = model;
  258. }
  259.  
  260. @XmlTransient
  261. public Collection getTbInsuranceCollection() {
  262. return tbInsuranceCollection;
  263. }
  264.  
  265. public void setTbInsuranceCollection(Collection
  266. tbInsuranceCollection) {
  267. this.tbInsuranceCollection = tbInsuranceCollection;
  268. }
  269.  
  270. @Override
  271. public int hashCode() {
  272. int hash = 0;
  273. hash += (id != null ? id.hashCode() : 0);
  274. return hash;
  275. }
  276.  
  277. @Override
  278. public boolean equals(Object object)
  279. {
  280. if (!(object instanceof TbModel))
  281. {
  282. return false;
  283. }
  284.  
  285. TbModel other = (TbModel) object;
  286.  
  287. if ((this.id == null && other.id != null) ||
  288. (this.id != null && !this.id.equals(other.id)))
  289. {
  290. return false;
  291. }
  292. return true;
  293. }
  294.  
  295. @Override
  296. public String toString()
  297. {
  298. return "ztp_06a.TbModel[ id=" + id + " ]";
  299. }
  300. }
  301. Znaleziono plagiat:
  302.  
  303.  
  304. Found a 29 line (81 tokens) duplication in the following files:
  305. Starting at line 57 of Bnowak\TbCustomer.java
  306. Starting at line 37 of Mejer\Customer.java
  307. Starting at line 66 of Samba\NZTP\TbCustomer.java
  308. Starting at line 66 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
  309. Starting at line 53 of Skubica\Customer.java
  310.  
  311. public TbCustomer(Integer id) {
  312. this.id = id;
  313. }
  314.  
  315. public Integer getId() {
  316. return id;
  317. }
  318.  
  319. public void setId(Integer id) {
  320. this.id = id;
  321. }
  322.  
  323. public String getFirstName() {
  324. return firstName;
  325. }
  326.  
  327. public void setFirstName(String firstName) {
  328. this.firstName = firstName;
  329. }
  330.  
  331. public String getLastName() {
  332. return lastName;
  333. }
  334.  
  335. public void setLastName(String lastName) {
  336. this.lastName = lastName;
  337. }
  338.  
  339. @XmlTransient
  340. Znaleziono plagiat:
  341.  
  342.  
  343. Found a 24 line (78 tokens) duplication in the following files:
  344. Starting at line 83 of Bnowak\TbCustomer.java
  345. Starting at line 70 of Bnowak\TbModel.java
  346. Starting at line 116 of Samba\NZTP\TbCustomer.java
  347. Starting at line 95 of Samba\NZTP\TbModel.java
  348. Starting at line 116 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
  349. Starting at line 95 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
  350.  
  351. }
  352.  
  353. @XmlTransient
  354. public Collection getTbInsuranceCollection() {
  355. return tbInsuranceCollection;
  356. }
  357.  
  358. public void setTbInsuranceCollection(Collection
  359. tbInsuranceCollection) {
  360. this.tbInsuranceCollection = tbInsuranceCollection;
  361. }
  362.  
  363. @Override
  364. public int hashCode()
  365. {
  366. int hash = 0;
  367. hash += (id != null ? id.hashCode() : 0);
  368. return hash;
  369. }
  370.  
  371. @Override
  372. public boolean equals(Object object)
  373. {
  374. if (!(object instanceof TbCustomer))
  375. Znaleziono plagiat:
  376.  
  377.  
  378. Found a 15 line (65 tokens) duplication in the following files:
  379. Starting at line 36 of Bnowak\TbCustomer.java
  380. Starting at line 12 of Mejer\Customer.java
  381. Starting at line 39 of Samba\NZTP\TbCustomer.java
  382. Starting at line 39 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
  383.  
  384. public class TbCustomer implements Serializable
  385. {
  386. private static final long serialVersionUID = 1L;
  387.  
  388. @Id
  389. @Basic(optional = false)
  390. @NotNull
  391. @Column(name = "Id")
  392. private Integer id;
  393. @Size(max = 255)
  394. @Column(name = "firstName")
  395. private String firstName;
  396. @Size(max = 255)
  397. @Column(name = "lastName")
  398. private String lastName;
  399. Znaleziono plagiat:
  400.  
  401.  
  402. Found a 21 line (58 tokens) duplication in the following files:
  403. Starting at line 52 of Bnowak\TbModel.java
  404. Starting at line 35 of Mejer\Model.java
  405. Starting at line 61 of Samba\NZTP\TbModel.java
  406. Starting at line 61 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
  407. Starting at line 46 of Skubica\Model.java
  408.  
  409. public TbModel(Integer id) {
  410. this.id = id;
  411. }
  412.  
  413. public Integer getId() {
  414. return id;
  415. }
  416.  
  417. public void setId(Integer id) {
  418. this.id = id;
  419. }
  420.  
  421. public String getModel() {
  422. return model;
  423. }
  424.  
  425. public void setModel(String model) {
  426. this.model = model;
  427. }
  428.  
  429. @XmlTransient
  430. Znaleziono plagiat:
  431.  
  432.  
  433. Found a 21 line (56 tokens) duplication in the following files:
  434. Starting at line 65 of Bnowak\TbCustomer.java
  435. Starting at line 39 of Kot1512\Customer.java
  436. Starting at line 70 of Krzysiek_szpala\TbCustomer.java
  437. Starting at line 82 of Samba\NZTP\TbCustomer.java
  438. Starting at line 82 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
  439.  
  440. public void setId(Integer id) {
  441. this.id = id;
  442. }
  443.  
  444. public String getFirstName() {
  445. return firstName;
  446. }
  447.  
  448. public void setFirstName(String firstName) {
  449. this.firstName = firstName;
  450. }
  451.  
  452. public String getLastName() {
  453. return lastName;
  454. }
  455.  
  456. public void setLastName(String lastName) {
  457. this.lastName = lastName;
  458. }
  459.  
  460. @XmlTransient
  461. Znaleziono plagiat:
  462.  
  463.  
  464. Found a 14 line (54 tokens) duplication in the following files:
  465. Starting at line 111 of Bnowak\TbCustomer.java
  466. Starting at line 122 of Bnowak\TbInsurance.java
  467. Starting at line 97 of Bnowak\TbModel.java
  468. Starting at line 110 of Mejer\Customer.java
  469. Starting at line 148 of Mejer\Insurance.java
  470. Starting at line 92 of Mejer\Model.java
  471. Starting at line 157 of Samba\NZTP\TbCustomer.java
  472. Starting at line 178 of Samba\NZTP\TbInsurance.java
  473. Starting at line 136 of Samba\NZTP\TbModel.java
  474. Starting at line 157 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
  475. Starting at line 178 of Samba\NZTP.06.103395-Klink-Bartosz\TbInsurance.java
  476. Starting at line 136 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
  477.  
  478. TbCustomer other = (TbCustomer) object;
  479.  
  480. if ((this.id == null && other.id != null) ||
  481. (this.id != null && !this.id.equals(other.id)))
  482. {
  483. return false;
  484. }
  485. return true;
  486. }
  487.  
  488. @Override
  489. public String toString()
  490. {
  491. return "ztp_06a.TbCustomer[ id=" + id + " ]";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement