We're updating the issue view to help you get more done. 

CGLib generation of equals and hashCode based on natural key

Description

Hibernate from version 3.0.5 knows about the natural key.

Since it is common and recommended practise to implement equals() and hashCode() based on the properties of the natural key, why not generate the bytecode of these methods automatically when using CGLib proxies? This would eliminate lots of potential for implementation and refactoring errors.

Environment

None

Status

Assignee

Unassigned

Reporter

Andreas Schildbach

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

3.1

Priority

Major