documentation about hashcode and equals not up to date

Description

You explain at https://docs.jboss.org/hibernate/orm/5.0/manual/en-US/html/ch04.html#persistent-classes-equalshashcode how to write equals and hashcode.
Current java versions allow to implement these methods in much shorter and cleaner code using java.util.Objects.equals() and java.util.Objects.hash().

Environment

every

Assignee

Vlad Mihalcea

Reporter

Carsten Hammer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure