Learn Spring Data JPA with this crash course on setup, configuration, and best practices for efficient data management. Learn about entities, repositories, and queries.
In this video, I walk you through configuring Spring Data JPA, creating entities, and managing database operations. You will see how to use repositories, write clean queries, and follow recommended guidelines for performance and maintenance.
☑️ Topics Covered:
Project setup and configuration
Entity creation and mapping
Repository interfaces and queries
Best practices for performance
✅ For branding and Business inquiries ► [email protected]
► Join Discord: / discord
🎉 Get IntelliJ Idea 100% for 3 Months: https://www.jetbrains.com/store/redeem/
👉 Use Promo Code: LearnWithIfte
👉 *Master programming by recreating your favorite technologies*: https://app.codecrafters.io/join?via=...
► Tool that I use for screen recording:
CleanShot X for Mac
cleanshot.sjv.io/bODOab
⛔ Background sound: https://share.epidemicsound.com/ia954g
💻 Running Windows on Mac? Get Parallels Desktop with a 20% discount!
👉 Use code PARALLELS20 and grab it here: https://parallels.sjv.io/bOVD3M
IDE I use for coding
IntelliJ Idea Ultimate
VsCode
Sublime
👉 Master programming by recreating your favorite technologies: https://app.codecrafters.io/join?via=...
🌐 Secure your connection with NordVPN: https://nordvpn.sjv.io/o4zYan
🤚 In case you want to contact me:
❌ My LinkedIn profile: / hossain-md-iftekhar
❌ My X / Twitter profile: / ifte_hsn
❌ Github: Github: https://github.com/learnwithiftekhar
Note: Some of the links in this description are affiliate links, and I may earn a small commission if you make a purchase through them. Thank you for your support.
Contents
00:00:00 Intro
00:02:42 Create new project
00:04:16 Project Structure
00:05:41 Start the project for the first time
00:07:57 Configure Database
00:13:24 Creating Employee Entity
00:15:05 ID Generation
00:18:47 @SequenceGenerator
00:20:26 @Column
00:21:46 Unique Constraint
00:22:40 Repository Pattern
00:24:21 Creating Repository
00:27:59 Testing Repository
00:33:54 Query the database - get total record count
00:34:36 Query the database - find by id
00:36:33 Deleting the data - delete by id
00:38:09 Query the database - find all
00:38:57 Defining Query Methods
00:51:13 @Query
00:53:20 Named Parameter-@Param
00:58:25 Native Query
01:00:06 @Modifying
01:01:18 @Transactional
01:03:30 Installing faker
01:04:18 Seed the database
01:08:10 Sorting
01:10:59 Paging
01:15:07 One to one relation
01:17:52 Cascade Type
01:25:12 FetchType
01:26:40 Uni-directional & Bi-Directional Relationships
01:28:29 Orphan Removal