The Tutorial covers Persistence in Spring – illustrating examples with Hibernate, JPA and Spring Data.
1. Core Persistence
Setup Hibernate 3 with Spring – the Java and XML Configuration, integration with MySQL and usage best practices.
Setup Hibernate 4 with Spring – the Java and XML Configuration, how to use and best practices.
Setup JPA with Spring – the Java and XML Configuration, the Maven dependencies and a generic DAO example.
Spring Data JPA with Spring – how to remove the DAO implementation, manual and automatic custom queries, transactions with Spring Data and configuration.
2. The DAO
Implement a generic DAO with Hibernate in Spring.
How to implement the DAO with JPA in a Spring project.
How to simplify the Data Access Layer by using a single, generified DAO, which will result in elegant data access, with no unnecessary clutter.
3. Advanced Persistence
Transaction Configuration with Spring 3 and JPA – how to Enable and Configure Transactions and set up Transaction Propagation.
Hibernate Mapping Exception – Unknown Entity – causes and solutions.
4. Other Spring Tutorials
The REST with Spring Tutorial - how to build REST Services with Spring
Spring Exceptions Tutorial – some of the most common exceptions in Spring with examples – why they occur and how to solve them quickly
The entire tutorial in based on this github project. Watch and fork it at will – the project can be used as a starting point for a more full fledged implementation.