- MySQL 5.5 or 5.6
- Eclipse
- JDK 1.7 (if you want to use Jetty 9 with the jetty-maven-plugin from project)
Create db schema by executing https://github.com/amacoder/demo-restWS-spring-jersey-jpa2-hibernate/blob/master/src/main/resources/input_data/DumpRESTdemoDB.sql against the MySQL database
- Download/clone the project
- Import in Eclipse
- Run Configuration -> Goals "clean install jetty:run"
Visit http://www.codingpedia.org/ama/java-persistence-example-with-spring-jpa2-and-hibernate/ for the explanation of the code