package org.mxchange.jshopcore.model.customer;
import java.util.Calendar;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
this.setCustomerLocked(customer.getCustomerLocked());
}
+ @Override
+ public boolean equals (final Object obj) {
+ if (this == obj) {
+ return true;
+ } else if (obj == null) {
+ return false;
+ } else if (this.getClass() != obj.getClass()) {
+ return false;
+ }
+
+ final Customer other = (Customer) obj;
+
+ if (!Objects.equals(this.getCustomerNumber(), other.getCustomerNumber())) {
+ return false;
+ } else if (!Objects.equals(this.getContact(), other.getContact())) {
+ return false;
+ }
+
+ return Objects.equals(this.getContact(), other.getContact());
+ }
+
+ @Override
+ public int hashCode () {
+ int hash = 3;
+ hash = 17 * hash + Objects.hashCode(this.getContact());
+ hash = 17 * hash + Objects.hashCode(this.getCustomerId());
+ hash = 17 * hash + Objects.hashCode(this.getCustomerNumber());
+ return hash;
+ }
+
@Override
public Contact getContact () {
return this.contact;