Skip to content

Add hints for entities package-private methods #35711

@odrotbohm

Description

@odrotbohm

Given an entity class

@Entity // could be @Embeddable etc.
@Access(AccessType.PROPERTY)
class Foo {

  String bar;

  void setBar(String bar) { … }
}

This type is usable in standard Hibernate, as the package-protected setBar(…) will be available to Hibernate. In a native image, that method is not available as PersistenceManagedTypesBeanRegistrationAotProcessor calls BindingReflectionHintsRegistrar.registerReflectionHints(…) which only considers public methods.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions