Course

Spring Data JPA

Master database management, advanced querying, and expert data handling with ease

of video
6.7 h
lectures
111
sections
21

$149.97one payment

Lifetime access. 15-day money-back guarantee.

Want a mentor as well? The Academy gives you every course on Amigoscode plus code reviews, daily live calls and interview prep, for $129/month. Compare →

“Amigoscode does a pretty darned good job, and consistently too, covering Spring, and for that I'm very appreciative.”
Josh Long · Spring Developer Advocate

What you'll learn

By the end of this course

  • JPA and Hibernate Fundamentals - Understand how Spring Data JPA simplifies data persistence.
  • Entity Relationships - Master One-to-One, One-to-Many, and Many-to-Many mappings.
  • Database Transactions - Learn how to manage transactions and ensure data integrity.
  • Advanced Querying - Use JPQL, native queries, projections, and DTOs for optimized data retrieval.
  • 1 to 1 relationships - Master One-to-One, One-to-Many, and Many-to-Many mappings.
  • 1 to many relationships - Master One-to-One, One-to-Many, and Many-to-Many mappings.
  • Many to many relationships - Master One-to-One, One-to-Many, and Many-to-Many mappings.
  • @Embeddable & @MapsId - Take full control of bridge tables with @Embeddable & @MapsId.
  • DTOs - Data Transfer Objects and DTO projections.
  • Auditing and Soft Deletes - Track entity changes and implement soft delete functionality.
  • Schema Evolution - Version your database effectively using Flyway.

Curriculum

21 sections, 111 lectures

6.7 h of video. Open any section to see its lectures.

1Intro10 min
  1. 1Course Outline4 min
  2. 2Intro To Hibernate And Spring Data Jpa5 min
  3. 3Recommended Courses
  4. 4Slides
2Environment setup9 min
  1. 1Intellij Ultimate
  2. 2Clone The Repo3 min
  3. 3Docker5 min
  4. 4Run The Application1 min
3Getting started31 min
  1. 1Student Class5 min
  2. 2@Entity And @Id1 min
  3. 3Test Changes5 min
  4. 4Sequences6 min
  5. 5@Column7 min
  6. 6@Table2 min
  7. 7Why We Need No Arg Contructor1 min
  8. 8Intellij Database Tools3 min
  9. 9End Section Commit
4Repositories18 min
  1. 1What Are Repositories4 min
  2. 2Student Repository3 min
  3. 3Count And Save6 min
  4. 4Exploring Other Methods4 min
  5. 5End Section Commit
5Queries and jpql30 min
  1. 1Method Name Derived Queries6 min
  2. 2More Method Name Derived Queries7 min
  3. 3Jpql Query Methods2 min
  4. 4@Query And Jpql4 min
  5. 5Named Parameters2 min
  6. 6@Modifying And @Transactional6 min
  7. 7Native Queries4 min
  8. 8End Section Commit
6Sorting and pagination28 min
  1. 1Adding Random Students6 min
  2. 2Sorting6 min
  3. 3Pagination9 min
  4. 4Query Limit Inspector7 min
  5. 5End Section Commit
7To 1 relationships52 min
  1. 1About Next 3 Sections2 min
  2. 2Understanding No Session Error6 min
  3. 3Uni Vs Birectional Relationships8 min
  4. 4Orphan Removal4 min
  5. 5Studentidcard6 min
  6. 6@Onetoone And @Joincolumn6 min
  7. 7@Foreignkey2 min
  8. 8Nullable And Unique1 min
  9. 9Studentidcardrepository1 min
  10. 10Lets Try To Create A Card3 min
  11. 11Understanding Cascade Types9 min
  12. 12Fetch Type5 min
8One to one relationships1 min
  1. 1End Section Commit
9Entity life cycle16 min
  1. 1Detached Entity Error5 min
  2. 2Hibernate Entity Lifecycle8 min
  3. 3Save And Update Entities4 min
  4. 4End Section Commit
10Exercise5 min
  1. 1Solution Explanation
  2. 2Solution Explanation5 min
11One to many44 min
  1. 1@Onetomany11 min
  2. 2Solve No Session With Eager And Fetch7 min
  3. 3Hibernate Initialize8 min
  4. 4@One To Many And Bidirectional5 min
  5. 5Test Add Book Method5 min
  6. 6Test Remove Book Method7 min
  7. 7What We Have So Far2 min
  8. 8End Section Commit
12Refactoring1 min
  1. 1Organize Code1 min
  2. 2End Section Commit
13Many to many relationships32 min
  1. 1Intro1 min
  2. 2Course Entiry And Repository3 min
  3. 3@Manytomany And @Jointable5 min
  4. 4Test Changes6 min
  5. 5Add And Remove To Student And Course Sets6 min
  6. 6Test Many To Many Changes10 min
  7. 7End Section Commit
14Embeding and mapsid42 min
  1. 1Intro1 min
  2. 2Createdat Column3 min
  3. 3End Section Commit
  4. 4Courseenrollment Entity And Id4 min
  5. 5@Embedeble3 min
  6. 6@Mapsid7 min
  7. 7Commit
  8. 8Exercise
  9. 9Exercise Solution1 min
  10. 10Switch To New Bridge Table5 min
  11. 11Test Changes8 min
  12. 12Commit
  13. 13Bi-directional Exercise
  14. 14Exercise Solution10 min
15Soft delete10 min
  1. 1What Is Soft Delete1 min
  2. 2@Sqldelete6 min
  3. 3@Sqlrestriction3 min
  4. 4End Section Commit
16Auditing and entity lifecycle events13 min
  1. 1What Is Auditing1 min
  2. 2Auditing In Action6 min
  3. 3More Auditing Annotations3 min
  4. 4Auditoraware3 min
  5. 5End Section Commit
  6. 6End Section Commit
17Data transfer objects18 min
  1. 1Never Do This5 min
  2. 2Using Dtos6 min
  3. 3Dto Projection7 min
  4. 4End Section Commit
18Tostring and equals and hashcode17 min
  1. 1The Tostring Problem8 min
  2. 2Best Way To Override Tostring5 min
  3. 3Equals And Hashcode4 min
19Database versioning and scheme evolution3 min
  1. 1Database Migrations3 min
  2. 2Recommended Courses
20Database transactions20 min
  1. 1Database Transactions And Acid2 min
  2. 2Account Package5 min
  3. 3The Problem6 min
  4. 4@Transactional7 min
  5. 5End Section Commit
21Outro1 min
  1. 1Feedback
  2. 2Next Course

Choose how you learn

Learn on your own, or with people who check your work

The course is yours to keep. The Academy is this course and every other one, plus the people who get you hired.

Spring Data JPA

The course, on your own

$149.97one payment

  • 111 lectures, 6.7 h of video
  • Source code for everything you build
  • Subtitles on every video
  • 6 months of IntelliJ IDEA Ultimate
  • Lifetime access to the course and its updates

15-day money-back guarantee

Recommended

The Academy

The courses, plus the people

$129/monthcancel anytime

This course, plus

  • Every course on Amigoscode 50+ in the Zero to Hired Roadmap
  • Daily live calls and 1:1 instructor time
  • Code reviews and pair programming on what you build
  • Interview prep mock interviews, System Design Lab, CV and LinkedIn review
  • Land an interview in 90 days or we coach you 1:1 free until you do.
Join the Academy

7-day money-back guarantee · Secure checkout on Skool

The course costs the same as under 2 months of the Academy, and the Academy includes it.

“Nelson was teaching 90% of my job. I was already implementing everything I learnt from it.”
MBMarlon BragaJava Full Stack Software Developer
“I was a totally different person. More confident as a developer, more prepared for my job.”
GabrielaSoftware Engineer at Mercado Livre
“I studied biomedicine and psychology. I found Nelson's Java tutorials while looking for a course for my brother. I was hooked and now here I am, a software engineer at IKEA.”
NajmaSoftware Engineer at IKEA

Read every review →

About this course

Who is this course for?

Level: All (Junior, Mid and Senior Engineers).

How long will it take?

There are about 7 hours of video. Most people finish in 1 weeks at 5 hours a week, plus the time you spend building along.

Do I keep access?

Yes. You pay once and keep the course for life, including updates.

What if it isn't for me?

Email us within 15 days of buying and we'll refund you in full.

Should I buy the course or join the Academy?

Buy the course if you only want this topic and you learn well on your own. Join the Academy if you want to get hired or move up: you get every course on Amigoscode, this one included, plus daily live calls, code reviews and interview prep, for $129/month. The course is $149.97 once.