I am using hibernate and need to override equals and hashCode(). I chose to use google-guava\'s equals and hashCode helpers.
I wanted to know if I am missing something
Its fine as is. Although instanceof makes the null check unnessary.
Also, I think its fine to use auto generated id's, although this is very debatable.