I advice to use standard hashCode-equals generation from Intellij Idea.