Spring Boot 3.2's Secret Weapon: Auto-Configured JDBC Client for Effortless Database Integration!

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024

ความคิดเห็น • 44

  • @Carter9007
    @Carter9007 ปีที่แล้ว +11

    This is the amount of abstraction I was hoping spring would provide for JDBC. Glad it made the cut!

  • @husane2161
    @husane2161 ปีที่แล้ว +2

    Dan, See you reppin' the Browns! Nice dub yesterday! Thank you for your content, love all your videos!

  • @vitaliiplagov
    @vitaliiplagov ปีที่แล้ว +6

    Fantastic!
    In our project, we have an internal library for working with JDBC that provides wrappers around jdbcTemplate, like `tryOne()`, `update()`, `list()`, etc. I think, once Spring Boot 3.2 is released, I will replace our custom code with Spring Boot built-in support. There will be less code to maintain and understand!
    Thanks for the video, Dan!

  • @philipschikora20
    @philipschikora20 ปีที่แล้ว +2

    nice! 3.2 is going to be such a cool release!

  • @AleksandarT10
    @AleksandarT10 ปีที่แล้ว +3

    Great topic. It seems to be pretty clean. Hopefully the mappings work out as aspected (because jdbcTemplate rowMappers were strange for some null fields :) )

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 8 หลายเดือนก่อน

    Thank you! Great tutorial! Awesome channel! 💛

  • @FilipCodes
    @FilipCodes ปีที่แล้ว +3

    20:21 how do you get such nice json formatting? Is it some chrome extension?

  • @maxd7228
    @maxd7228 ปีที่แล้ว +3

    Hey Dan, Can you do a video on Spring Modulith project?

  • @konstantingromov6485
    @konstantingromov6485 ปีที่แล้ว

    It's really awesome to have fluent DSL clients instead of classes bloated by overloaded methods.
    I was really waiting for RestTemplate replacement and finally it happened (hopefully it will be deprecated and removed soon).
    With JdbcClient I would probably go further - to extend with select/create/delete/update - to make similar to JOOQ API.

  • @FredrikRambris
    @FredrikRambris ปีที่แล้ว +2

    What about getting generated keys? The KeyHolder in JdbcTemplate was weird. Even weirder in the DatabaseClient in r2dbc

  • @LekkyDev
    @LekkyDev 4 หลายเดือนก่อน

    Is there a difference between a service and a repository.
    I've seen in some tutorials you use @repository and in others @service.
    What is the difference? When to use which?

  • @minarashidi868
    @minarashidi868 11 หลายเดือนก่อน

    Could you elaborate on the difference between spring-data-jdbc and JDBC client? Which one do you recommend?

  • @sylvereleipertz955
    @sylvereleipertz955 ปีที่แล้ว +2

    You don't need the Qualifer annotation if you name your parameter just like your class. Spring boot will find out automatically which implementation of the interface you're asking for

  • @hamzahayd6751
    @hamzahayd6751 8 หลายเดือนก่อน

    Pretty neat. Almost feels like Jooq ;)

  • @poorneshm.m4494
    @poorneshm.m4494 10 หลายเดือนก่อน

    Hi Dan,how to use PreparedStatement in three JDBC Client or it internally uses it?Thank you in advance

  • @EmmanuelBLONVIA
    @EmmanuelBLONVIA หลายเดือนก่อน

    12:12 JDBC Client Example actually Starts here

  • @Cashylein
    @Cashylein 7 หลายเดือนก่อน

    Thank you!

  • @kaly7dev4873
    @kaly7dev4873 ปีที่แล้ว

    Nice topic thanks !

  • @sagarbhat1
    @sagarbhat1 ปีที่แล้ว +3

    Just wondering, why would anyone choose JDBC template or the new JDBC client over Spring Data JPA?

    • @sagarbhat1
      @sagarbhat1 ปีที่แล้ว

      Are there any use cases where JDBC template or the new JDBC client would be more useful or preferable than Spring Data JPA?

    • @syednoorullahshah9194
      @syednoorullahshah9194 ปีที่แล้ว

      @@sagarbhat1 I have such a case. I have a spring boot app that needs to connect to IBM's Netezza Data warehouse. Netezza has its own jdbc driver and since Hibernate or spring data JPA do not support Netezza. I'm currently looking for an alternative approach (i.e. better than the raw jdbc one).

  • @JamesStansell
    @JamesStansell ปีที่แล้ว

    Wondering if this might be useful with a database that is set up to be accessed issuing stored procedures? Switching the legacy access to jdbc template and row mappers was prohibitive.

  • @gasparcalix2095
    @gasparcalix2095 ปีที่แล้ว

    Just grate!

  • @pintukumar-vo3yd
    @pintukumar-vo3yd 2 หลายเดือนก่อน

    How to write JdbcClient junit for select insert and update. Can you make video for this.

  • @michelchaghoury9629
    @michelchaghoury9629 ปีที่แล้ว

    @Dan Vega what if in the select clause we have a column named f_name and in the java class it is defined as firstName how can we map column to properties?

  • @robtai6225
    @robtai6225 ปีที่แล้ว +1

    dan, can you make an introductory video on spring boot 3.0 for noobs?

    • @DanVega
      @DanVega  ปีที่แล้ว

      I certainly can... What would you like the video to be focused on? What's new in Spring? What are you trying to build with it?

  • @bradenborman4396
    @bradenborman4396 10 หลายเดือนก่อน

    How does it handle mapping enums on the record?

  • @Varkon
    @Varkon ปีที่แล้ว

    Doesn't Quarkus already have such a (or similar) feature?

  • @reflection648
    @reflection648 ปีที่แล้ว

    which plugin you have used for templates

  • @akhill357
    @akhill357 11 หลายเดือนก่อน

    what buttons are you using to get post-schema etc. templates in intellij

  • @hkkabir2024
    @hkkabir2024 ปีที่แล้ว +1

    the question is why i use jdbc even jdbc template when i have JPA????????

    • @diegoshevek5927
      @diegoshevek5927 11 หลายเดือนก่อน

      The more question marks you add, the better the question is

    • @hkkabir2024
      @hkkabir2024 11 หลายเดือนก่อน +1

      @@diegoshevek5927 it's beyond my mind. would you like to tell me the answer in appropriate topic ?

  • @joachimdietl6737
    @joachimdietl6737 ปีที่แล้ว +2

    Why would you do that instead of using JPA?

    • @ocleidyreve6361
      @ocleidyreve6361 ปีที่แล้ว +3

      If you are working on an old codebase with raw jdbc ResultSet. The migration will be smoother, the team will avoid shooting itself in the foot with JPA/Hibernate, and the performance will be preserved.

    • @joachimdietl6737
      @joachimdietl6737 ปีที่แล้ว

      @@ocleidyreve6361 yes with an old codebase you have a lot to do, but i am wondering for new projects, it does not make a sense

  • @gallardofabian
    @gallardofabian ปีที่แล้ว +1

    thanks great videos, I only suggest a litte more zoom in the videos if you can. Have a god day

    • @DanVega
      @DanVega  ปีที่แล้ว +1

      Zoom on the code?

    • @gallardofabian
      @gallardofabian ปีที่แล้ว

      @@DanVega yes thanks :)

    • @lukamaletic9557
      @lukamaletic9557 ปีที่แล้ว

      It is pretty visible, and much better this way if you ask me as we see more code and if the quality of the video is fine, there are no issues with reading.

  • @Gabriel-ts9nl
    @Gabriel-ts9nl ปีที่แล้ว

    🤤 "Promosm"