Add equals and hashCode to DocumentId and User classes