| 134 | | // if personId is null for either object, for equality the |
|---|
| 135 | | // two objects must be the same |
|---|
| 136 | | if (getPersonId() == null || person.getPersonId() == null) |
|---|
| 137 | | return super.equals(person); |
|---|
| 138 | | |
|---|
| 139 | | // compare the personId values |
|---|
| 140 | | return (personId.equals(person.getPersonId())); |
|---|
| 141 | | } |
|---|
| 142 | | return false; |
|---|
| | 134 | if (getPersonId() != null && person.getPersonId() != null) |
|---|
| | 135 | return personId.equals(person.getPersonId()); |
|---|
| | 136 | } |
|---|
| | 137 | |
|---|
| | 138 | // if personId is null for either object, for equality the |
|---|
| | 139 | // two objects must be the same |
|---|
| | 140 | return this == obj; |
|---|