Example of Spring Data JPA application (Hibernate used as implementation of JPA). http://fruzenshtein.com/spring-jpa-data-hibernate-mysql/