this.id = id; this.name = name;
if (obj == this) return true; if (!(obj instanceof CustomerPK)) return false; if (obj == null) return false; CustomerPK pk = (CustomerPK) obj; return pk.id == id && pk.name.equals(name);
return id;
return name;
return (int) id + name.hashCode();
this.id = id;
this.name = name;