package dist.models;
import javax.persistence.Embeddable;
@Embeddable
public class DistProductLocationsPK {
public String product;
public String location;
@Override
public String toString() {
return "DistProductLocationsPK{" +
"product='" + product + '\'' +
", location='" + location + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof DistProductLocationsPK)) return false;
DistProductLocationsPK that = (DistProductLocationsPK) o;
if (!product.equals(that.product)) return false;
return location.equals(that.location);
}
@Override
public int hashCode() {
int result = product.hashCode();
result = 31 * result + location.hashCode();
return result;
}
}