MicroJPA is a framework to provide injection of resource-local EntityManager
s and their factories via @PersistenceContext
and @PersistenceUnit
in CDI-environments where no such injection is present.
That may be the case in testing scenarios or with servers that do not implement the full JEE stack like Meecrowave.
Latest release version: 2.0.0
To use it in a Maven project the following dependency should be added to the pom.xml:
<dependency>
<groupId>org.microjpa</groupId>
<artifactId>microjpa</artifactId>
<version>2.0.0</version>
</dependency>
or when using Gradle the following line needs to be added to the dependencies block:
implementation 'org.microjpa:microjpa:2.0.0'