The ULTIMATE Guide for Spring Data JPA & Hibernate | 5 Hours Tutorial

The ULTIMATE Guide for Spring Data JPA & Hibernate | 5 Hours Tutorial

103.049 Lượt nghe
The ULTIMATE Guide for Spring Data JPA & Hibernate | 5 Hours Tutorial
🌟 Dive into the world of Spring Boot & Spring Data JPA with our latest course! 🚀 Immerse yourself in 8 hours of meticulously crafted content, meticulously prepared with passion and care. 🤓 In today's competitive market, mastering Spring Boot is a career game-changer. The demand for skilled Spring Boot developers is skyrocketing, and top-tier companies are on the lookout for professionals like you. Embark on an incredible journey, exploring topics such as "Spring Core," "RESTful API," "Data Persistence & Spring Data JPA,", Embedded entities, Embedded ID, Inheritance, Named queries, Specifications and much more. Imagine not just being a developer, but a problem solver and digital magician, transforming code into cutting-edge solutions. 🎟 Join this channel to get access to perks: @BoualiAli CONNECT WITH ME: 👨‍💻. Website: https://aliboucoding.com 👨‍🏫 Facebook: https://www.facebook.com/groups/589612651142975 📸 Instagram: https://www.instagram.com/alibou_coding 🎮 GitHub: https://github.com/ali-bouali 🏘️ Discord: https://discord.gg/Ded93eKfAB Recommended Courses: 🎬 Spring Boot security & JWT token: https://www.youtube.com/watch?v=BVdQ3iuovg0 🎬 Spring security - Roles and permissions: https://www.youtube.com/watch?v=mq5oUXcAXL4 🎬 Spring Boot - Microservices architecture: https://www.youtube.com/watch?v=KJ0cSvYj41c 🎬 DevOps - Github Actions CI/CD: https://www.youtube.com/watch?v=a5qkPEod9ng 🎬 Spring Security - KeyCloak integration: https://www.youtube.com/watch?v=vmEWywGzWbA 🎬 DevOps - Docker for Beginners: https://www.youtube.com/watch?v=LNL0h66FXu0 🎬 DevOps - AWS EC2 deployment: https://www.youtube.com/watch?v=ua0cb2LjCW4 🎬 Angular - Full course from scratch: https://www.youtube.com/watch?v=VTEDh2pNSBQ 🎬 Websocket - Chat application one to one: https://www.youtube.com/watch?v=7T-HnTE6v64 🎬 Spring Security - Two Factors Authentication 2FA (TFA): https://www.youtube.com/watch?v=NzuC52eLGKo 🎬 Spring Boot - Swagger UI & OpenApi Decomentation :https://www.youtube.com/watch?v=2o_3hjUPAfQ 🎬 Spring Boot - Reactive programming & WebFlux:https://www.youtube.com/watch?v=EnUsNVHveyU 🎬 Spring Data JPA & Hibernate: https://www.youtube.com/watch?v=eY9riN5Y2mQ&list=PL41m5U3u3wwkS8BU0fIeRQwY3hK4VlFlX&pp=gAQBiAQB 🎬 Apache Kafka tutorial: https://youtu.be/KQDTtvZMS9c 🎬 Spring batch tutorial: https://www.youtube.com/playlist?list=PL41m5U3u3wwlKYP6yhLKaa09rB5aUMUnn 🎬 Spring Boot tutorial: https://youtu.be/6r-MpAWVw6c #springboot #springdatajpa Table of content: 00:00 Intro 01:40 Setup postgres DB (Docker) 06:45 Setup MySQL DB (Docker) 09:12 Create a new spring boot project 12:01 Setup the DB and create a schema (Postgres) 17:23 Setup the DB and create a schema (MySQL) 19:16 Connect the application to the database (Postgres) 28:37 Connect the application to the database (MySQL) 34:30 The project we will build 40:23 Hibernate VS Spring data jpa 43:39 Create the first java class 49:56 Transform the Java class to an Entity 52:55 @Id annotation 57:19 @GeneratedValue annotation 01:02:39 Strategy: Auto 01:09:07 @SequenceGenerator annotation 01:14:49 @TableGenerator annotation 01:19:20 @Column annotation overview 01:23:34 Usage of @Colum annotation 01:30:55 @Table annotation 01:34:47 Repository overview 01:38:16 Depp understanding of repositories 01:43:23 Discover the repositories as code 01:46:12 Create the first repository 01:49:14 Create a command line runner bean 01:51:39 Insert some data into the DB 01:56:40 Entity lifecycle 02:05:08 Why creating relationships between entities 02:08:29 The difference between unidirectional and bidirectional relationship 02:12:07 Create the course entity 02:14:16 Create the section entity 02:15:06 Create the lecture entity 02:15:45 Create the resource entity 02:16:59 @ManyToMany relationship 02:25:38 @ManyToOne relationship 02:30:46 One to many between section and lecture 02:33:07 @OneToOne relationship 02:37:48 Check if your code is correct 02:40:23 JPA Inheritance overview 02:43:29 Inheritance over composition 02:46:04 @MappedSuperClass 02:58:49 Create the child classes 03:02:06 Single table strategy 03:08:40 Single table discriminator value 03:02:32 Test single table strategy 03:16:40 Joined table strategy 03:24:52 Table per class strategy 03:30:00 Polymorphic queries 03:33:10 Embedded entities overview 03:37:30 Create embedded id class 03:40:31 Use the embedded ID 03:45:15 Test the embedded ID 03:52:16 Create an embeddable Address class 03:55:45 @Embaddable annotation 03:58:34 Derived queries explained 04:06:50 FindAllBy explained 04:12:36 Playing with findBy method 04:20:42 Add Java faker dependency 04:22:53 Insert fake data 04:28:34 Exercise 04:29:16 Exercise - Solution - Update a field 04:34:39 Update data with @Modifiying 04:40:55 @MamedQueries definition 04:43:30 Select data with named query 04:48:21 Update data with named queries 04:52:36 Specification overview 04:55:05 Extend the repository 04:55:42 Building the specification 05:00:21 Execute the specification