public void setName(String name) { this.name = name; }
@Override public int hashCode() { final int PRIME = 31; int result = 1; result = PRIME * result + ((email == null ) ? 0 : email .hashCode()); result = PRIME * result + ((name == null ) ? 0 : name.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null ) return false; if (getClass() != obj.getClass()) return false; final CustomerPK other = (CustomerPK) obj; if (email == null ) { if (other.email != null ) return false; } else if (!email .equals(other.email )) return false; if (name == null ) { if (other.name != null ) return false; } else if (!name.equals(other.name)) return false; return true; }