Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Doc: MutablePersistenceUnitInfo.addManagedPackage() not triggering a package scan [SPR-12821] #17418
When using the PersistenceUnitPostProcessor interface for dynamically injecting Entities and Named Queries in my EntityManagerFactory, I use the method MutablePersistenceUnitInfo.addManagedPackage() to add a package for the EntityManagerFactory scan for entities.
However these packages never get scanned.
I'm I doing something wrong?
Juergen Hoeller commented
I'm afraid this is not the purpose of
Package scanning itself is rather driven by