Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Java Mastery
·
Module 10
Data Persistence with Spring Data JPA
1
Configuring MySQL in Spring Boot application.properties
Configure a MySQL database connection in a Spring Boot application.properties file.
Mapping Entities with @Entity and @Id
Define a JPA entity by mapping a Java class to a database table using @Entity and @Id.
Mapping Entity Relationships
Map one-to-many and many-to-one relationships between entities.
4
Mapping @ManyToMany with a Join Table
Map many-to-many relationships using @ManyToMany with a join table.
5
Extending JpaRepository for Basic CRUD
Create a repository interface extending JpaRepository to get basic CRUD functionality.
Derived Query Methods in Repositories
Define custom queries in a repository using derived query method names.
7
Custom Queries with @Query
Write complex SQL or JPQL queries in a repository using the @Query annotation.
8
Declarative Transaction Management with @Transactional
Manage database transactions declaratively using the @Transactional annotation.
Previous module
Building REST APIs with Spring Boot
Next module
API Security with Spring Security and JWT