Beispiel #1
0
 @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;
 }
Beispiel #2
0
 @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;
 }
Beispiel #3
0
 public Integer getSequenceNumber() {
   return awardPerson != null ? awardPerson.getSequenceNumber() : 0;
 }
Beispiel #4
0
 public void setSequenceOwner(Award newlyVersionedOwner) {
   if (awardPerson != null) {
     awardPerson.setAward(newlyVersionedOwner);
   }
 }
Beispiel #5
0
 public Award getSequenceOwner() {
   return awardPerson != null ? awardPerson.getAward() : null;
 }
Beispiel #6
0
 /** @param awardPerson */
 public void setAwardPerson(AwardPerson awardPerson) {
   this.awardPerson = awardPerson;
   this.awardContactId = awardPerson != null ? awardPerson.getAwardContactId() : null;
 }
Beispiel #7
0
 public String getFullName() {
   return awardPerson != null
       ? (awardPerson.getContact() != null ? awardPerson.getContact().getFullName() : null)
       : null;
 }