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

Поделиться
HTML-код
  • Опубликовано: 2 июл 2019
  • 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
    @techneis 3 года назад +4

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

  • @danielnoguera2219
    @danielnoguera2219 2 года назад +1

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

  • @landry_john
    @landry_john 11 месяцев назад

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

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

  • @phash2k
    @phash2k 5 лет назад

    Thanks Torben, very interesting!

  • @mithileshtipkari8814
    @mithileshtipkari8814 3 года назад

    Excellent explanation, thanks.

  • @abedjarjanazy1178
    @abedjarjanazy1178 4 года назад

    Outstanding explanation.

  • @gopalaagrawal7414
    @gopalaagrawal7414 3 года назад

    Thanks a lot for the explanation

  • @saimyousuf2108
    @saimyousuf2108 2 года назад

    This guy is criminally underrated.

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

  • @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
    @techiesrikanth2447 4 года назад

    Thanks !!

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

  • @ngn6454
    @ngn6454 3 года назад

    HI, which repository should we use for Bigquery ?

  • @vineetpandey3552
    @vineetpandey3552 4 года назад

    Very nice....

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

  • @krishnaramdas5809
    @krishnaramdas5809 3 года назад +1

    How to handle if it is a complex query with multiple joins across tables. Can I still use Spring Boot and Repository approach..?

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

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

  • @mostinho7
    @mostinho7 4 года назад

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

  • @surisuri5137
    @surisuri5137 Год назад

    in real time this is different but nice explain.

  • @francescopaci9435
    @francescopaci9435 3 года назад +1

    can you make a video in MyBatis?

  • @wilsonmwangi8647
    @wilsonmwangi8647 2 месяца назад

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

  • @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
    @mostinho7 4 года назад

    7:00

  • @MrMikomi
    @MrMikomi 3 года назад +2

    I get the feeling that this is fine until it isn't ie once your project is no longer simple.

    • @darkmesa7933
      @darkmesa7933 3 года назад +1

      absolutely yes....i think plain hibernate JPA offers so much more control over how we can perform complex queries and logic over entities

  • @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 лет назад +3

      you can slow the video with youtube on desktop browser

  • @bisikleta1015
    @bisikleta1015 4 года назад +1

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