Bug WISE-421 #resolve

This commit is contained in:
Ezequiel Bergamaschi 2015-04-03 01:23:50 -03:00
parent 4822267970
commit 2316459cf1

View File

@ -100,4 +100,28 @@ public class Collaboration {
return this.getRole().ordinal() <= role.ordinal();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Collaboration that = (Collaboration) o;
if (id != that.id) return false;
if (collaborator != null ? !collaborator.equals(that.collaborator) : that.collaborator != null) return false;
if (mindMap != null ? !mindMap.equals(that.mindMap) : that.mindMap != null) return false;
if (role != that.role) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (role != null ? role.hashCode() : 0);
result = 31 * result + (mindMap != null ? mindMap.hashCode() : 0);
result = 31 * result + (collaborator != null ? collaborator.hashCode() : 0);
return result;
}
}