Spring Data JPA: What is it? And Why Should You Use It?

  Рет қаралды 69,877

Thorben Janssen

Thorben Janssen

Күн бұрын

When you implement a new application, you should focus on the business logic instead of technical complexity and boilerplate code. That’s why the Java Persistence API (JPA) specification and Spring Data JPA are extremely popular. JPA handles most of the complexity of JDBC-based database access and object-relational mappings. On top of that, Spring Data JPA reduces the amount of boilerplate code required by JPA. That makes the implementation of your persistence layer easier and faster.
Sounds great, doesn’t it? It’s no surprise that a lot of development teams use that stack to implement their persistence layer.
Links mentioned in the video-
Getting Started With Hibernate: www.thoughts-o...
What’s the difference between JPA, Hibernate and EclipseLink?: www.thoughts-o...
If you like this video, please give me your thumbs up and share it with your friends and co-workers.
Like my channel? Subscribe!
➜ bit.ly/2cUsid8
Join the free Member Library:
goo.gl/dtyIIC
Read the accompanying post: thoughts-on-ja...
Want to connect with me?
Blog: www.thoughts-on...
Twitter: / thjanssen123
Facebook: / thoughtsonjava
#SpringDataJPA #GettingStarted #Spring

Пікірлер: 38
@techneis
@techneis 4 жыл бұрын
Bunch of Thanks, Thorben! I appreciate the clarity and precision of the topics.
@landry_john
@landry_john Жыл бұрын
Hi ! Thank you for that clear introduction to Sprind Data JPA. Looking forward to learn a lot about Java Spring Tech.
@saimyousuf2108
@saimyousuf2108 2 жыл бұрын
This guy is criminally underrated.
@timw594
@timw594 Жыл бұрын
I just can't see how these additional layers actually makes things easier especially when stacking other frameworks into the mix like Angular, typescript etc. It just feels like the complexities being added are far worse and introduce excessive moving parts vs just simply learning RDBMS and CRUD operations using JDBC stored procs, SQL etc. Since everything ultimately comes down to the data being stored/accessed by an application and many biz applications are highly customized for the biz, the power that you have within the RDBMS environment to better handle/secure crud operations using standardized pl/sql which is what Spring JPA is going to end up calling anyhow is overwhelming and in more complex implementations will require a developer on the team to learn anyhow to troubleshoot problems. I've been doing full-stack web for decades but the last 15 years have been interesting in regards to how much more complex we've actually made things in the effort to make them easier.
@Vanuatoo
@Vanuatoo 2 жыл бұрын
In real-life applications you need to have many native queries and standard methods generated by the repository seem like marketing. I try to convince myself that adding another layer on top of JPA brings significant advantage.
@seeboonsoo
@seeboonsoo Ай бұрын
The best!
@mithileshtipkari8814
@mithileshtipkari8814 3 жыл бұрын
Excellent explanation, thanks.
@abedjarjanazy1178
@abedjarjanazy1178 4 жыл бұрын
Outstanding explanation.
@RanjithKumar-qj9mn
@RanjithKumar-qj9mn 3 жыл бұрын
difference between hibernate sessionfactory and spring data jpa methods (As spring data jpa is an abstraction over JPA and hibernate is the default implementation of spring data jpa)
@kutilkol
@kutilkol Жыл бұрын
My jsme ti co nespí, my neznáme spánek. To s čím oni flexí, to my děláme stále. My žijeme Multiverse, jo tady to známe. Toto je náš vesmír, tomu verte páne.
@francescopaci9435
@francescopaci9435 3 жыл бұрын
can you make a video in MyBatis?
@surisuri5137
@surisuri5137 Жыл бұрын
in real time this is different but nice explain.
@wilsonmwangi8647
@wilsonmwangi8647 5 ай бұрын
Good content. Please could you React in your next video. Thanks
@phash2k
@phash2k 5 жыл бұрын
Thanks Torben, very interesting!
@gopalaagrawal7414
@gopalaagrawal7414 3 жыл бұрын
Thanks a lot for the explanation
@krishnaramdas5809
@krishnaramdas5809 3 жыл бұрын
How to handle if it is a complex query with multiple joins across tables. Can I still use Spring Boot and Repository approach..?
@monikaveeramalla3381
@monikaveeramalla3381 3 жыл бұрын
Use hibernate sessionfactoy
@izzyk7905
@izzyk7905 Жыл бұрын
Thank you for explanation! I have a question regarding number of levels: I need to have 5-6 levels of depth for subgraphs but it didn't work in hibernate 6.1.6.Final (worked in lower versions though).
@MarcusHarrise-l9n
@MarcusHarrise-l9n 23 сағат бұрын
Bashirian Gardens
@mostinho7
@mostinho7 4 жыл бұрын
3:40 spring data JPA features (vs just using entityManager directly) 1. No code repositories 2.
@alexissuarezalvarez5622
@alexissuarezalvarez5622 2 жыл бұрын
Hi thanks for the tutorials. I really like Spring data JPA, however I would like to know what happens when we deal with long procedures in the database involving multiple tables. wouldn't that generate very verbose code in our application(repositories, services, etc)?
@ngn6454
@ngn6454 3 жыл бұрын
HI, which repository should we use for Bigquery ?
@techiesrikanth2447
@techiesrikanth2447 4 жыл бұрын
Thanks !!
@vineetpandey3552
@vineetpandey3552 4 жыл бұрын
Very nice....
@MrMikomi
@MrMikomi 3 жыл бұрын
I get the feeling that this is fine until it isn't ie once your project is no longer simple.
@darkmesa7933
@darkmesa7933 3 жыл бұрын
absolutely yes....i think plain hibernate JPA offers so much more control over how we can perform complex queries and logic over entities
@zeemf1
@zeemf1 5 жыл бұрын
hi Thorben, is it possible to add the entity graphs to these entity repositories, or should you implement them in a separate parallel layer? As you know this is fine for fast development but the application gets quite slow with many relationship connections. Br,
@kayladagibbse4617
@kayladagibbse4617 7 күн бұрын
Robinson Deborah Anderson Kevin Harris Mark
@mostinho7
@mostinho7 4 жыл бұрын
7:00
@deepusasidharan2012
@deepusasidharan2012 2 жыл бұрын
Aha
@carlosfabio2
@carlosfabio2 5 жыл бұрын
Hey. Thanks for this new and very useful video. Also, I want to say that you speak to fast! Can you speak slowly next time?
@rosshoyt2030
@rosshoyt2030 5 жыл бұрын
you can slow the video with youtube on desktop browser
@bisikleta1015
@bisikleta1015 5 жыл бұрын
You talk so much about other links and references that it gets tiring
@danielnoguera2219
@danielnoguera2219 2 жыл бұрын
You are a great teacher. Your explanation is simple and deep both. Thanks a lot! Cheers from Argentina!
@david3979
@david3979 3 жыл бұрын
What woud you use between `CrudRepository` (seen in th evideo) and `JPARepository` in 2021? Is `JPARepository` just a better version of `CrudRepository` with more automatisation? Also, thank you for the video and the great resources.
@adamo901
@adamo901 5 жыл бұрын
Thanks a lot for this video. What about the integration with Java EE?
@sabari.p5048
@sabari.p5048 3 жыл бұрын
Thanks Thorben
@sydneylawman803
@sydneylawman803 6 сағат бұрын
Wintheiser Garden
Ultimate Guide: Derived Queries with Spring Data JPA
10:14
Thorben Janssen
Рет қаралды 14 М.
Евгений Борисов - Spring Data? Да, та!
50:04
JPoint, Joker и JUG ru
Рет қаралды 104 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 8 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 64 МЛН
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 18 М.
JPA & Hibernate: Basic Annotations You Need To Know
15:11
Thorben Janssen
Рет қаралды 31 М.
JDBC vs JPA: Pros and Cons
11:56
Pro Coder
Рет қаралды 33 М.
Spring Data JPA from 0-100 in 60 minutes
1:02:31
VMware Tanzu
Рет қаралды 81 М.
What is JPA? | JPA Implementation
26:21
Telusko
Рет қаралды 384 М.