-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Open
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)in: testIssues in the test moduleIssues in the test moduletheme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: enhancementA general enhancementA general enhancement
Milestone
Description
Overview
While running tests such as JpaEntityListenerTests
in the spring-test
module in AOT mode, I noticed that we do not support dependency injection in an instance of a test class via @PersistenceContext
and @PersistenceUnit
.
For example, the following field in JpaEntityListenerTests
is not injected when running in AOT mode.
@PersistenceContext
EntityManager entityManager;
Related Issues
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)in: testIssues in the test moduleIssues in the test moduletheme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: enhancementA general enhancementA general enhancement