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

Avoid initializing proxy when using covariant return types for ID getters

Description

When using an entity hierarchy with overridden ID getters and covariant return types, Hibernate does not detect ID getter calls and unnecessarily initializes proxies in order to call the methods instead of just returing the ID.

Environment

None

Status

Assignee

Strong Liu

Reporter

Michael Rudolf

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

3.3.1

Priority

Major