Hibernate ignores fetchgraph

Description

This is my entity:

This is how I get the list of persons:

If I understand fetch graph correcly it must load only those fields, which I specified. However, the field "birthDate" is also loaded. Besides I see that in hibernate sql query 4 columns are selected.

How to fix it? I use hibernate 5.1.0 as JPA provider.

Environment

Linux, Ubuntu 14

Assignee

Gail Badner

Reporter

P

Fix versions

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure