@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } User other = (User) obj; if (articleVersions == null) { if (other.articleVersions != null) { return false; } } else if (!articleVersions.equals(other.articleVersions)) { return false; } if (avatar == null) { if (other.avatar != null) { return false; } } else if (!avatar.equals(other.avatar)) { return false; } if (creationdate == null) { if (other.creationdate != null) { return false; } } else if (!creationdate.equals(other.creationdate)) { return false; } if (email == null) { if (other.email != null) { return false; } } else if (!email.equals(other.email)) { return false; } if (googleAcount != other.googleAcount) { return false; } if (idUser == null) { if (other.idUser != null) { return false; } } else if (!idUser.equals(other.idUser)) { return false; } if (lastLoginDate == null) { if (other.lastLoginDate != null) { return false; } } else if (!lastLoginDate.equals(other.lastLoginDate)) { return false; } if (loginName == null) { if (other.loginName != null) { return false; } } else if (!loginName.equals(other.loginName)) { return false; } if (name == null) { if (other.name != null) { return false; } } else if (!name.equals(other.name)) { return false; } if (password == null) { if (other.password != null) { return false; } } else if (!password.equals(other.password)) { return false; } if (registrationHash == null) { if (other.registrationHash != null) { return false; } } else if (!registrationHash.equals(other.registrationHash)) { return false; } if (role == null) { if (other.role != null) { return false; } } else if (!role.equals(other.role)) { return false; } if (state != other.state) { return false; } if (surname == null) { if (other.surname != null) { return false; } } else if (!surname.equals(other.surname)) { return false; } return true; }