public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof BPartner)) {
return false;
}
BPartner other = (BPartner) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.address1 == null && other.getAddress1() == null) ||
(this.address1 != null &&
this.address1.equals(other.getAddress1()))) &&
((this.address2 == null && other.getAddress2() == null) ||
(this.address2 != null &&
this.address2.equals(other.getAddress2()))) &&
((this.city == null && other.getCity() == null) ||
(this.city != null &&
this.city.equals(other.getCity()))) &&
((this.country == null && other.getCountry() == null) ||
(this.country != null &&
this.country.equals(other.getCountry()))) &&
((this.id == null && other.getId() == null) ||
(this.id != null &&
this.id.equals(other.getId()))) &&
((this.name == null && other.getName() == null) ||
(this.name != null &&
this.name.equals(other.getName()))) &&
((this.postal == null && other.getPostal() == null) ||
(this.postal != null &&
this.postal.equals(other.getPostal()))) &&
((this.region == null && other.getRegion() == null) ||
(this.region != null &&
this.region.equals(other.getRegion())));
__equalsCalc = null;
return _equals;
}