A really fast JPA subset implementation to be use in development environments.
STOP using mocks to improve your tests velocity, START using RaidenJPA.
"if it (test) takes ten seconds just to start testing, toss it!" by Uncle Bob - bit.ly/WbZTTU
(55 sec) https://www.youtube.com/watch?v=BPrVga6dRRA
Currently, there are already two (private) projects using it. Although it is not complete, you can try it in your project without fear, because its intention is not go to production, just help you in development environment. You can see issues in GitHub.
Do you want help to put it on your project? Send me an email: [email protected]
Dependency:
<dependency>
<groupId>org.raidenjpa</groupId>
<artifactId>raidenjpa-core</artifactId>
<version>0.0.4</version>
</dependency>
In your code:
// As soon as possible, it will be able to use <provider> in persistence.xml
EntityManagerFactory emf = new RaidenEntityManagerFactory();
You need Java 7+ and maven 3+
$ # Compile
$ mvn clean install
$ # Run tests
$ mvn test (run tests using Raiden)
$ mvn test -Dhibernate (run the same tests, but using Hibernate)
$ # Configure eclipse files
$ mvn eclipse:clean eclipse:eclipse