A test application for the hibernate @Any annotation using Spring 4, Spring Data JPA and H2.
First issue mvn clean compile
or select Run as->Maven build in Eclipse. After that you can run App.java
as a Java Application.
The same goes for the Unit tests (AppTest.java
).