This repository contains exercises and examples from the book "Java Persistence with Spring Data and Hibernate" by Catalin Tudose.
A collection of hands-on exercises demonstrating Java persistence techniques using Spring Data and Hibernate. These exercises cover various topics including entity mapping, relationships, queries, and advanced persistence concepts.
- Java - Programming language
- Maven - Build and dependency management
- Spring Data JPA - Data access abstraction
- Hibernate - JPA implementation and ORM framework
- JDK 11 or higher
- Maven 3.6+
- IDE (IntelliJ IDEA, Eclipse, or VS Code)
- Clone the repository:
git clone <repository-url>- Navigate to the project directory:
cd <project-directory>- Build the project:
mvn clean install- Run tests:
mvn testThe repository is organized by chapters and topics from the book, with each module containing relevant exercises and examples.
Each exercise module can be run independently. Navigate to the specific module and follow the instructions in its respective README or comments.
- Understanding JPA and Hibernate fundamentals
- Mapping entities and relationships
- Working with Spring Data repositories
- Writing efficient queries (JPQL, Criteria API, native SQL)
- Transaction management
- Performance optimization
Educational purposes only. Please refer to the book for detailed explanations and theory.