JPA And Hibernate Tutorial For Beginners with Spring Boot and Spring Data JPA

preview_player
Показать описание
JPA And Hibernate Tutorial For Beginners with Spring Boot.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Join Our Free Courses
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Our Top 10 Courses
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30+ Courses. 500,000+ Learners. Amazing Reviews.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FREE Courses For You
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Other Recommendations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

JPA And Hibernate Tutorial For Beginners

In this video, we learn the basics of JPA and understand how it compares with the earlier attempts of persistence frameworks used to store data to database.

How does it compare to JDBC?
How does it compare to Spring JDBC?
We will understand the basic concepts of JPA

Entities
Mappings
Relationships
We will create a Spring Boot project with Spring Initializr and create an Entity and Repository to get a big picture of JPA, Spring Data and Spring Data JPA.

JPA and Hibernate in 10 Steps with H2

Steps

Step 1 : Object Relational Impedence Mismatch - Understanding the problem that JPA solves
Step 2 : World before JPA - JDBC, Spring JDBC and myBatis
Step 3 : Introduction to JPA
Step 4 : Creating a JPA Project using Spring Initializr
Step 5 : Defining a JPA Entity - User
Step 6 : Defining a Service to manage the Entity - UserService and EntityManager
Step 7 : Using a Command Line Runner to save the User to Database
Step 8 : Magic of Spring Boot and In Memory Database H2
Step 9 : Introduction to Spring Data JPA
Step 10 : More JPA Repository : findById and findAll
Рекомендации по теме
Комментарии
Автор

15:17 example jpa mapping
18:50 example jpa with spring boot
27:32 entity class mappings
30:39 entity manager
31:30 repository
34:28 command line runner
39:56 jpa dependency configuration

deveshtyagi
Автор

22:12 Difference between JPA and Hibernate. Thank you for pointing it out. Good thing to know.

sandeshmaskey
Автор

Great tutorial, I managed to solve the problem where I was stuck, appreciated.

Carayoto
Автор

Bruh this stuff is just liquid gold. More power to you mate.

indrajithvinodnair
Автор

U r doing great job man.. Want ur success in every way .

pushparay
Автор

This was a really great step by step tutorial. Thank you!

MrDroy
Автор

Very nicely explained, my basics are now super clear

kislayaaakash
Автор

Excellent one.. You have explanation is super and covered most of important things to know

veerrajumandavilli
Автор

Hi, with Hibernate can I map my columns dynamically? I have many users and each one can define a different set of columns to use(those preferences are stored in a table) and when hibernate starts I don't know which columns will be used by every user before I load the preferences table.

habibbenmammar
Автор

What is the reason behind having the default constructor?

I just tried out findAll method throws exception if the default constructor is not provide.

souvikpodder
Автор

HELP PLEASE!!
it keeps on giving the error Consider defining a bean of type 'service.UserDAOService' in your configuration.

umangabhatta
Автор

Thanks for nice explanation video, can you please provide Many to many relational ship example also.

spnarayanrao
Автор

That's quite a tutorial. Great work!

krzysztofstrzegomski
Автор

I am having a doubt, if we are creating a new command line runner class for save and findbyid method in it. What abt the initial command line runner where main is present which gets run fist. We know that thread starts from main how new command line runner starts.

_randomstuff
Автор

I did not get msg of "New User is created" means...my record has not been inserted...even no error msg

avirajsingh
Автор

Hello, I am having an issue with running the java application at 37:44. It shows Application Failed To Start and it says Port 8080 is already in use. Please help!

sohilgandhi
Автор

Thank you, sir :-) This tutorial helped me a lot!

ntigirishari
Автор

Good Morning Ranga Sir.
I have created a Springboot, Jpa project and configured
2 databases. Can we update the existing records with Unique constraint? Table doesn't have Primary Key.
Here, I am fetching the records from Azure MS SQL Server View and Loading into On Premise Oracle DB Table. In Azure Microsoft SQL Server View, most of columns are having duplicate values. Here, I am fetching the data from Azure DB, then deleting the existing records from Oracle table and inserting the Azure Db data into Oracle DB table. Instead of deleting the existing records from Oracle Db table, can we update the existing records in Oracle DB table ??

chinmayabehera
Автор

sir i have few doubt on JPA, please help me
1) i do not want to define PK/FK at db level but in my jpa @query i want to implement joins, how can we achive this (with regular code its giving error or trying to create ddl (ddl=true enabled) )
2) sometimes we use self join so there as well the relation changes based on requirement, so what to use joins without defining relation
3) in JPA is it possible to define entity without PK ?


Please help me

TheMunishprashar
Автор

How to index pdf content by using spring-data?
We will really appreciate if some one can answer this question.

ursfren