Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Found a 102 line (356 tokens) duplication in the following files:
- Starting at line 36 of Bnowak\TbInsurance.java
- Starting at line 41 of Samba\NZTP\TbInsurance.java
- Starting at line 41 of Samba\NZTP.06.103395-Klink-Bartosz\TbInsurance.java
- query = "SELECT tbi from TbInsurance tbi WHERE tbi.customerId.id = :cust AND tbi.modelId.model = :model AND (tbi.dateFrom > :date1 OR tbi.dateTo < :date2)")})
- public class TbInsurance implements Serializable
- {
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "Id")
- private Integer id;
- @Column(name = "dateFrom")
- @Temporal(TemporalType.TIMESTAMP)
- private Date dateFrom;
- @Column(name = "dateTo")
- @Temporal(TemporalType.TIMESTAMP)
- private Date dateTo;
- @JoinColumn(name = "customerId", referencedColumnName = "Id")
- @ManyToOne
- private TbCustomer customerId;
- @JoinColumn(name = "modelId", referencedColumnName = "Id")
- @ManyToOne
- private TbModel modelId;
- public TbInsurance() {
- }
- public TbInsurance(Integer id) {
- this.id = id;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public Date getDateFrom() {
- return dateFrom;
- }
- public void setDateFrom(Date dateFrom) {
- this.dateFrom = dateFrom;
- }
- public Date getDateTo() {
- return dateTo;
- }
- public void setDateTo(Date dateTo) {
- this.dateTo = dateTo;
- }
- public TbCustomer getCustomerId() {
- return customerId;
- }
- public void setCustomerId(TbCustomer customerId) {
- this.customerId = customerId;
- }
- public TbModel getModelId() {
- return modelId;
- }
- public void setModelId(TbModel modelId) {
- this.modelId = modelId;
- }
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
- @Override
- public boolean equals(Object object)
- {
- if (!(object instanceof TbInsurance))
- {
- return false;
- }
- TbInsurance other = (TbInsurance) object;
- if ((this.id == null && other.id != null) ||
- (this.id != null && !this.id.equals(other.id)))
- {
- return false;
- }
- return true;
- }
- @Override
- public String toString()
- {
- return "ztp_06a.TbInsurance[ id=" + id + " ]";
- }
- }
- Znaleziono plagiat:
- Found a 95 line (322 tokens) duplication in the following files:
- Starting at line 33 of Bnowak\TbCustomer.java
- Starting at line 38 of Samba\NZTP\TbCustomer.java
- Starting at line 38 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
- query = "SELECT tbc FROM TbCustomer tbc WHERE tbc.id = :id")
- })
- public class TbCustomer implements Serializable
- {
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "Id")
- private Integer id;
- @Size(max = 255)
- @Column(name = "firstName")
- private String firstName;
- @Size(max = 255)
- @Column(name = "lastName")
- private String lastName;
- @OneToMany(mappedBy = "customerId")
- private Collection tbInsuranceCollection;
- public TbCustomer() {
- }
- public TbCustomer(Integer id) {
- this.id = id;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getFirstName() {
- return firstName;
- }
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
- public String getLastName() {
- return lastName;
- }
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
- @XmlTransient
- public Collection getTbInsuranceCollection() {
- return tbInsuranceCollection;
- }
- public void setTbInsuranceCollection(Collection
- tbInsuranceCollection) {
- this.tbInsuranceCollection = tbInsuranceCollection;
- }
- @Override
- public int hashCode()
- {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
- @Override
- public boolean equals(Object object)
- {
- if (!(object instanceof TbCustomer))
- {
- return false;
- }
- TbCustomer other = (TbCustomer) object;
- if ((this.id == null && other.id != null) ||
- (this.id != null && !this.id.equals(other.id)))
- {
- return false;
- }
- return true;
- }
- @Override
- public String toString()
- {
- return "ztp_06a.TbCustomer[ id=" + id + " ]";
- }
- }
- Znaleziono plagiat:
- Found a 82 line (282 tokens) duplication in the following files:
- Starting at line 31 of Bnowak\TbModel.java
- Starting at line 36 of Samba\NZTP\TbModel.java
- Starting at line 36 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
- query = "SELECT tbm FROM TbModel tbm")
- })
- public class TbModel implements Serializable
- {
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "Id")
- private Integer id;
- @Size(max = 255)
- @Column(name = "model")
- private String model;
- @OneToMany(mappedBy = "modelId")
- private Collection tbInsuranceCollection;
- public TbModel() {
- }
- public TbModel(Integer id) {
- this.id = id;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getModel() {
- return model;
- }
- public void setModel(String model) {
- this.model = model;
- }
- @XmlTransient
- public Collection getTbInsuranceCollection() {
- return tbInsuranceCollection;
- }
- public void setTbInsuranceCollection(Collection
- tbInsuranceCollection) {
- this.tbInsuranceCollection = tbInsuranceCollection;
- }
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
- @Override
- public boolean equals(Object object)
- {
- if (!(object instanceof TbModel))
- {
- return false;
- }
- TbModel other = (TbModel) object;
- if ((this.id == null && other.id != null) ||
- (this.id != null && !this.id.equals(other.id)))
- {
- return false;
- }
- return true;
- }
- @Override
- public String toString()
- {
- return "ztp_06a.TbModel[ id=" + id + " ]";
- }
- }
- Znaleziono plagiat:
- Found a 29 line (81 tokens) duplication in the following files:
- Starting at line 57 of Bnowak\TbCustomer.java
- Starting at line 37 of Mejer\Customer.java
- Starting at line 66 of Samba\NZTP\TbCustomer.java
- Starting at line 66 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
- Starting at line 53 of Skubica\Customer.java
- public TbCustomer(Integer id) {
- this.id = id;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getFirstName() {
- return firstName;
- }
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
- public String getLastName() {
- return lastName;
- }
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
- @XmlTransient
- Znaleziono plagiat:
- Found a 24 line (78 tokens) duplication in the following files:
- Starting at line 83 of Bnowak\TbCustomer.java
- Starting at line 70 of Bnowak\TbModel.java
- Starting at line 116 of Samba\NZTP\TbCustomer.java
- Starting at line 95 of Samba\NZTP\TbModel.java
- Starting at line 116 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
- Starting at line 95 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
- }
- @XmlTransient
- public Collection getTbInsuranceCollection() {
- return tbInsuranceCollection;
- }
- public void setTbInsuranceCollection(Collection
- tbInsuranceCollection) {
- this.tbInsuranceCollection = tbInsuranceCollection;
- }
- @Override
- public int hashCode()
- {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
- @Override
- public boolean equals(Object object)
- {
- if (!(object instanceof TbCustomer))
- Znaleziono plagiat:
- Found a 15 line (65 tokens) duplication in the following files:
- Starting at line 36 of Bnowak\TbCustomer.java
- Starting at line 12 of Mejer\Customer.java
- Starting at line 39 of Samba\NZTP\TbCustomer.java
- Starting at line 39 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
- public class TbCustomer implements Serializable
- {
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "Id")
- private Integer id;
- @Size(max = 255)
- @Column(name = "firstName")
- private String firstName;
- @Size(max = 255)
- @Column(name = "lastName")
- private String lastName;
- Znaleziono plagiat:
- Found a 21 line (58 tokens) duplication in the following files:
- Starting at line 52 of Bnowak\TbModel.java
- Starting at line 35 of Mejer\Model.java
- Starting at line 61 of Samba\NZTP\TbModel.java
- Starting at line 61 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
- Starting at line 46 of Skubica\Model.java
- public TbModel(Integer id) {
- this.id = id;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getModel() {
- return model;
- }
- public void setModel(String model) {
- this.model = model;
- }
- @XmlTransient
- Znaleziono plagiat:
- Found a 21 line (56 tokens) duplication in the following files:
- Starting at line 65 of Bnowak\TbCustomer.java
- Starting at line 39 of Kot1512\Customer.java
- Starting at line 70 of Krzysiek_szpala\TbCustomer.java
- Starting at line 82 of Samba\NZTP\TbCustomer.java
- Starting at line 82 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
- public void setId(Integer id) {
- this.id = id;
- }
- public String getFirstName() {
- return firstName;
- }
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
- public String getLastName() {
- return lastName;
- }
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
- @XmlTransient
- Znaleziono plagiat:
- Found a 14 line (54 tokens) duplication in the following files:
- Starting at line 111 of Bnowak\TbCustomer.java
- Starting at line 122 of Bnowak\TbInsurance.java
- Starting at line 97 of Bnowak\TbModel.java
- Starting at line 110 of Mejer\Customer.java
- Starting at line 148 of Mejer\Insurance.java
- Starting at line 92 of Mejer\Model.java
- Starting at line 157 of Samba\NZTP\TbCustomer.java
- Starting at line 178 of Samba\NZTP\TbInsurance.java
- Starting at line 136 of Samba\NZTP\TbModel.java
- Starting at line 157 of Samba\NZTP.06.103395-Klink-Bartosz\TbCustomer.java
- Starting at line 178 of Samba\NZTP.06.103395-Klink-Bartosz\TbInsurance.java
- Starting at line 136 of Samba\NZTP.06.103395-Klink-Bartosz\TbModel.java
- TbCustomer other = (TbCustomer) object;
- if ((this.id == null && other.id != null) ||
- (this.id != null && !this.id.equals(other.id)))
- {
- return false;
- }
- return true;
- }
- @Override
- public String toString()
- {
- return "ztp_06a.TbCustomer[ id=" + id + " ]";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement