Spring Data JPA Tutorials, Tips & Tricks

A complete guide to learn what is Spring Data JPA auditing feature and how to enable it in a Spring Boot and MySQL application.

Learn more

A complete guide to learn what is Spring Data JPA Specifications and how to use it to generate dynamic database queries.

Learn more

A complete guide to learn in detail about Spring Data repository interfaces such as CrudRepository, PagingAndSortingRepository, and JpaRepository.

Learn more

A complete guide to map a composite primary key by using both @IdClass and @EmbeddedId annotations in Spring Data JPA.

Learn more

A step-by-step guide on how to map and use a many-to-many relationship using Spring Data JPA and MySQL in a Spring Boot application.

Learn more

A step by step guide to create and use a one to many relationship mapping in a Spring Data JPA and MySQL application.

Learn more

A complete guide to define and use a one-to-one relationship mapping in a Spring Data JPA and MySQL project.

Learn more

A comprehensive guide to learn how to use paginate query results using the Pageable interface in Spring Data JPA.

Learn more

A complete guide to understand how sorting works in Spring Data JPA and how to use it for derived, named, and custom queries.

Learn more

A comprehensive guide to create and use named queries in a Spring Boot application. Learn to create named queries by using a properties file, annotations, or the orm.xml file.

Learn more

A comprehensive guide to learn how to create and use both JPQL and native SQL queries by using the @Query annotation in Spring Data JPA.

Learn more

A comprehensive guide to learn how to create and use the derived query methods in Spring Data JPA.

Learn more

Learn how to access data using Spring Data JPA with MySQL database in a Spring Boot application.

Learn more

Learn how to use Spring Data JPA with H2 in-memory database in a Spring Boot application for storing, accessing, updating and deleting entities.

Learn more

Learn what is Spring Data JPA (Java Persistence API) and how to configure it in a Spring Boot application.

Learn more
🙌 Get new tutorials in your inbox every week