Extract JPA listener definitions when building metadata rather than when creating the SessionFactory

Description

Currently, @PreUpdate, @EntityListeners, etc. are detected using reflection when we create the SessionFactory.

This is problematic when using native compilation (GraalVM) because then reflection may not be available anymore when we create the SessionFactory.

We should move the detection of these annotations to an earlier phase, during metadata construction.

Activity

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created October 11, 2021 at 1:20 PM
Updated October 27, 2021 at 11:03 AM
Resolved October 15, 2021 at 8:05 AM

Flag notifications