spring-framework/spring-test
Sam Brannen 934394eb2a Document AOT workaround for @⁠PersistenceContext & @⁠PersistenceUnit in tests
Although @⁠PersistenceContext and @⁠PersistenceUnit are still not
supported in tests running in AOT mode, as of Spring Framework 7.0,
developers can inject an EntityManager or EntityManagerFactory into
tests using @⁠Autowired instead of @⁠PersistenceContext and
@⁠PersistenceUnit, respectively.

See commit 096303c477
See gh-33414
Closes gh-31442
2025-11-05 14:30:41 +01:00
..
src Document AOT workaround for @⁠PersistenceContext & @⁠PersistenceUnit in tests 2025-11-05 14:30:41 +01:00
.springBeans
spring-test.gradle Upgrade to JUnit 6.0.1 and prevent AOT scanning failure for JUnit 4 tests 2025-11-01 12:28:59 +01:00