Spring Data JPA Tutorial - #14 - save() Method | Save an Entity to the MySQL Database Table

preview_player
Показать описание
Hi, welcome to the Spring Data JPA tutorial series/course.
In this lecture, we will learn how to save an entity to the database using the save() method.

Spring Data JPA is used to reduce the amount of boilerplate code required to implement the data access object (DAO) layer.

Spring Data JPA is not a JPA provider. It is a library/framework that adds an extra layer of abstraction on top of our JPA provider (like Hibernate).

Spring Data JPA uses Hibernate as a default JPA provider.

#springdatajpa #springboot #coursedevoiture
Рекомендации по теме
Комментарии
Автор

I don't hv test option here. Plz help

swadhindas
Автор

But Test methods shouldn't persist the data in db, it must rollback right?

seeasme
Автор

sir i have a doubt, when i try to post some data to db to the already existing 'id' and it's updating the data .then what is the use of Post and Put Mapping?

yashwanthyash
Автор

Hi Sir:
im using Eclise im trying to run Junit4
it throw

can you please help? here is the stackTrace:


Cannot invoke because "this.productRepository" is null
at
at Method)
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at

carlosbernardo
Автор

sir i have a doubt, when i try to post some data to db to the already existing 'id' and it's updating then what is the use of Post and Put Mapping?

yashwanthyash
visit shbcf.ru