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