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
Fixed

Assignee

Stuart Douglas

Reporter

Sanne Grinovero

Fix versions