@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AwardPersonUnit)) { return false; } AwardPersonUnit other = (AwardPersonUnit) obj; if (awardPerson == null) { if (other.awardPerson != null) { return false; } } else if (!awardPerson.equals(other.awardPerson)) { return false; } if (unit == null) { if (other.unit != null) { return false; } } else if (!unit.equals(other.unit)) { return false; } return true; }
@Override public int hashCode() { final int PRIME = 31; int result = 1; result = PRIME * result + ((awardPerson == null) ? 0 : awardPerson.hashCode()); result = PRIME * result + ((unit == null) ? 0 : unit.hashCode()); return result; }
public Integer getSequenceNumber() { return awardPerson != null ? awardPerson.getSequenceNumber() : 0; }
public void setSequenceOwner(Award newlyVersionedOwner) { if (awardPerson != null) { awardPerson.setAward(newlyVersionedOwner); } }
public Award getSequenceOwner() { return awardPerson != null ? awardPerson.getAward() : null; }
/** @param awardPerson */ public void setAwardPerson(AwardPerson awardPerson) { this.awardPerson = awardPerson; this.awardContactId = awardPerson != null ? awardPerson.getAwardContactId() : null; }
public String getFullName() { return awardPerson != null ? (awardPerson.getContact() != null ? awardPerson.getContact().getFullName() : null) : null; }