I am writing a Plugin that gets some data out of a database in order to show it as code documentation.
The Problem is that I cannot create an EntityManagerFactory:
javax.persistence.PersistenceException: No Persistence provider for EntityManager named myDatabase
When running the code in unit tests there is no problem. The exception only appears when running the plugin in the target platform.
I have tried to locate the persistence.xml in both /META-INF and /src/META-INF but neither works.
Thanks for help!