With Bytecode enhancement a lazy ManyToOne association targeting an Entity annotated with @Proxy(lazy = false) is eagerly loaded

Description

When Bytecode enhancement is enabled, given:

@Entity @Proxy(lazy = false) public static class User { @Id Long id; String name; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "team_id") UserGroup team; } @Entity @Proxy(lazy = false) public static class UserGroup { @Id Long id; String name; }
User user = session.getReference( User.class, 1 ); user.getName();

should not intialize the User#team association.

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created June 14, 2023 at 10:57 AM
Updated June 30, 2023 at 11:45 AM
Resolved June 19, 2023 at 1:50 PM