You can remove these hashCode() and equals() implementations, as this is the implementation that you'll inherit.