Difference Between Hibernate and Spring Data JPA | Hibernate vs Spring Data JPA

preview_player
Показать описание
In this video, we will discuss the difference between Hibernate and Spring Data JPA.

Hibernate is a JPA implementation, while Spring Data JPA is a JPA Data Access Abstraction. Spring Data offers a solution to GenericDao custom implementations. It can also generate JPA queries on your behalf through method name conventions.

With Spring Data, you may use Hibernate, Eclipse Link, or any other JPA provider. A very interesting benefit is that you can control transaction boundaries declaratively using the @Transactional annotation.

Spring Data JPA is not an implementation or JPA provider, it's just an abstraction used to significantly reduce the amount of boilerplate code required to implement data access layers for various persistence stores. I hope this article is useful to you. You can find more answers to this question at StackOverflow.

Hibernate provides a reference implementation of the Java Persistence API that makes it a great choice as an ORM tool with the benefits of loose coupling.

Remember, Spring Data JPA always requires the JPA provider such as Hibernate or Eclipse Link.

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

Concise and to the point explanation. Thank you so much.

bloom
Автор

I was planning to study HIbernate and Spring from this channel. But this video saved my time, I guess moms rightly say that we need to just check one rice to know if the rice is cooked properly. :)

HariShankar-yfdi
Автор

Thank you. One of most interview question

maddipatlamadhura
Автор

Hi Ramesh sir, can u please do the videos on string batch and spring reactive

m.archanareddy
Автор

Superb, beautiful explanation neat & clean.

vishalgaikwad
Автор

Thanks! Do i need to learn Hibernate seperately or Spring Data JPA would be enough?

tarunagarwal
Автор

Can u please do complete Playlist of hibernate....

afrozkhan.
Автор

I am using Linux Ubuntu os, i want hibarnate external jar files for eclipse

mohangabhale
Автор

how not to explain. just reading from the slide, and no explanation at all.

eshwarnag
Автор

sirf padhke thodi batana hai, dusro ko samjhana bhi hai mere bhai

shubzzsrp