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