@LazyGroup is ignored on LazyToOne association with 'mappedBy'

Description

Given is a bytecodeenhanced Entity having a OneToOne LazyToOne association A with mappedBy.

After annotating A with @LazyGroup("myFancyGroup") and recompiling, it is still loaded together with other lazy attributes or associations in the default lazy group. So it seems the Annotation is ignored altogether.

Testcase and possible solution will be attached soon

Environment

originally noticed in hibernate 5.1.8 with postgresql
reproduced with hibernate 5 git master at 2017-07-30 on h2-DB

Status

Assignee

Gail Badner

Reporter

Jan-Oliver Lustig

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.1.8

Priority

Major
Configure