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

Ғылым және технология

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-on-java.org/hibe...
What’s the difference between JPA, Hibernate and EclipseLink?: www.thoughts-on-java.org/diff...
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-java.org/what-is-...
Want to connect with me?
Blog: www.thoughts-on-java.org/
Twitter: / thjanssen123
Facebook: / thoughtsonjava
#SpringDataJPA #GettingStarted #Spring

Пікірлер: 34

  • @techneis
    @techneis3 жыл бұрын

    Bunch of Thanks, Thorben! I appreciate the clarity and precision of the topics.

  • @danielnoguera2219
    @danielnoguera22192 жыл бұрын

    You are a great teacher. Your explanation is simple and deep both. Thanks a lot! Cheers from Argentina!

  • @landry_john
    @landry_john10 ай бұрын

    Hi ! Thank you for that clear introduction to Sprind Data JPA. Looking forward to learn a lot about Java Spring Tech.

  • @phash2k
    @phash2k4 жыл бұрын

    Thanks Torben, very interesting!

  • @mithileshtipkari8814
    @mithileshtipkari88143 жыл бұрын

    Excellent explanation, thanks.

  • @abedjarjanazy1178
    @abedjarjanazy11784 жыл бұрын

    Outstanding explanation.

  • @gopalaagrawal7414
    @gopalaagrawal74143 жыл бұрын

    Thanks a lot for the explanation

  • @zeemf1
    @zeemf15 жыл бұрын

    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,

  • @adamo901
    @adamo9015 жыл бұрын

    Thanks a lot for this video. What about the integration with Java EE?

  • @alexissuarezalvarez5622
    @alexissuarezalvarez56222 жыл бұрын

    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)?

  • @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).

  • @techiesrikanth2447
    @techiesrikanth24474 жыл бұрын

    Thanks !!

  • @david3979
    @david39793 жыл бұрын

    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.

  • @vineetpandey3552
    @vineetpandey35523 жыл бұрын

    Very nice....

  • @saimyousuf2108
    @saimyousuf21082 жыл бұрын

    This guy is criminally underrated.

  • @sabari.p5048
    @sabari.p50483 жыл бұрын

    Thanks Thorben

  • @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.

  • @ngn6454
    @ngn64543 жыл бұрын

    HI, which repository should we use for Bigquery ?

  • @Vanuatoo
    @Vanuatoo2 жыл бұрын

    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.

  • @krishnaramdas5809
    @krishnaramdas58093 жыл бұрын

    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

  • @RanjithKumar-qj9mn
    @RanjithKumar-qj9mn3 жыл бұрын

    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)

  • @surisuri5137
    @surisuri5137 Жыл бұрын

    in real time this is different but nice explain.

  • @mostinho7
    @mostinho74 жыл бұрын

    3:40 spring data JPA features (vs just using entityManager directly) 1. No code repositories 2.

  • @wilsonmwangi8647
    @wilsonmwangi86472 ай бұрын

    Good content. Please could you React in your next video. Thanks

  • @francescopaci9435
    @francescopaci94353 жыл бұрын

    can you make a video in MyBatis?

  • @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.

  • @mostinho7
    @mostinho74 жыл бұрын

    7:00

  • @MrMikomi
    @MrMikomi3 жыл бұрын

    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

  • @deepusasidharan2012
    @deepusasidharan20122 жыл бұрын

    Aha

  • @carlosfabio2
    @carlosfabio25 жыл бұрын

    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

    4 жыл бұрын

    you can slow the video with youtube on desktop browser

  • @bisikleta1015
    @bisikleta10154 жыл бұрын

    You talk so much about other links and references that it gets tiring

Келесі