Skip to content

Skip class transformer in PersistenceUnitInfoDescriptor for native images #30492

@sdeleuze

Description

@sdeleuze

Due to this change in Hibernate 6.2, Bytebuddy class enhancement is now invoked via SpringHibernateJpaPersistenceProvider -> PersistenceUnitInfoDescriptor - > EnhancingClassTransformerImpl -> BytecodeProviderInitiator.buildDefaultBytecodeProvider(), breaking Hibernate integration when compiling to native images.

This change updates the PersistenceUnitInfoDescriptor instance created by SpringHibernateJpaPersistenceProvider in order to skip the class transformer with native.

Footprint optimization will require completing #29549 is is outside of the scope of this change.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions