You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I have not tested it yet, it appears that you can simply inject the EntityManager and then use new JpaMetamodelRedGProvider(entityManager.getMetamodel()) instead of the "traditional" approach using JpaMetamodelRedGProvider.fromPersistenceUnit("name-of-unit"). I'm going to setup a test Spring project to confirm this the next few days, but according to multiple sources this should work just fine.
Spring Boot for instance doesn't use traditional persistence unit anymore.
The text was updated successfully, but these errors were encountered: