Barcode.java
package org.oxerr.seatgeek.client.model;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
public class Barcode implements Serializable {
private static final long serialVersionUID = 20230314L;
private Integer seat;
private String barcode;
public Integer getSeat() {
return seat;
}
public void setSeat(Integer seat) {
this.seat = seat;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (obj == this) {
return true;
}
if (obj.getClass() != getClass()) {
return false;
}
Barcode rhs = (Barcode) obj;
return EqualsBuilder.reflectionEquals(this, rhs);
}
}