RESTful application with Spring, Hibernate and JPA