Improve ByteBuddyProxyHelper to allow defining proxy classes without actually loading the class

Description

In Quarkus there is a clean separation between defining classes (or enhancing them) vs actually loading them.

The ByteBuddyProxyHelper we have in Hibernate ORM implicitly forces to load the proxies it generates; this has been shown to come at a performance cost during the build, and since it happens to be unnecessary we should allow to generate such proxies while skipping the class load.

Environment

None

Assignee

Stuart Douglas

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure