public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof OrderLine)) {
return false;
}
OrderLine other = (OrderLine) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.orderLineId == null && other.getOrderLineId() == null) ||
(this.orderLineId != null &&
this.orderLineId.equals(other.getOrderLineId()))) &&
this.price == other.getPrice() &&
((this.productId == null && other.getProductId() == null) ||
(this.productId != null &&
this.productId.equals(other.getProductId()))) &&
((this.taxId == null && other.getTaxId() == null) ||
(this.taxId != null &&
this.taxId.equals(other.getTaxId()))) &&
this.units == other.getUnits();
__equalsCalc = null;
return _equals;
}