Exploring Spring Boot 3.2 🚀 New JDBC Client | Latest Features Explained !

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 37

  • @radiyziyat7747
    @radiyziyat7747 Год назад +1

    Great job. Thanks
    I liked making complex sql.
    Take dto.class for Entity
    And without using RowMapping you can immediately get the result complex sql query.
    A very effective thing for developing reporting forms and developing microservices.

  • @javaandothers6460
    @javaandothers6460 Год назад +2

    Finally not so different from "mybatis framework"

  • @michalechowicz6903
    @michalechowicz6903 Год назад +1

    Thanks for a video! Nice an example!

  • @vndprasadgrandhi4344
    @vndprasadgrandhi4344 Год назад +1

    Thank you very much for sharing wonderful content

  • @gopisambasivarao5282
    @gopisambasivarao5282 Год назад +1

    Thanks, Basant, for your efforts. God bless you. 🙏🙂

  • @varaddeshmukh1137
    @varaddeshmukh1137 Год назад +1

    In spring data JPA we have @Query annotation. In this we can set native true if we want.
    Then what is difference between @Query and this new feature?

  • @munnukiranchowdhary
    @munnukiranchowdhary Год назад +1

    Superb bro... new thing i have learnt... thank you...

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

    Thank you.

  • @jaripatidevendra6172
    @jaripatidevendra6172 Год назад +1

    Could you please explain debugging concepts pls

  • @vidhanchandra3997
    @vidhanchandra3997 Год назад +1

    Waiting for next video of microservices design pattern

  • @karthikeyanrm3446
    @karthikeyanrm3446 Год назад +1

    Basant - any good references to learn DSA and system design for 10 years experience. Most of the companies shortlist candidates based on that. Please suggest 🙏

  • @bimerinoel4913
    @bimerinoel4913 Год назад +1

    Thanks for your great tutorial, But why these sql query, what if you want to do a complex query, can't it be mapped to data JPA queries

  • @sayantanghosh8245
    @sayantanghosh8245 Год назад +1

    Can you please cover course on Filter, interceptor ,requestbodyAdvise ,responsebodyAdvide. Thanks .😊

  • @pintukumar-vo3yd
    @pintukumar-vo3yd 3 месяца назад

    How to mock or do junit for JdbcClient

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

    Also please advise in context to NO SQL flavors like mongo it can be used

  • @atopazio
    @atopazio Год назад +1

    Thanks for vídeo, how to do when it's can populate object inside object? for example, client.address.street

  • @pardeepsaini3844
    @pardeepsaini3844 Год назад +1

    I need your help regarding configuration of multiple database in spring boot please

    • @Javatechie
      @Javatechie  Год назад +1

      Already I have uploaded how to configure multiple datasource please check that video

  • @hemanth1687
    @hemanth1687 11 месяцев назад +1

    it is taking almost 18 seconds to fetch 1000 records is there any alternate for that.

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

      This is just a demo buddy implement some executor service and validate

    • @hemanth1687
      @hemanth1687 11 месяцев назад +1

      can you please share any reference as once i called query with limit 1000 it is taking more than 15 sec but need it below 10 seconds from spring boot application ​@@Javatechie

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

      Sure i will share some references but before that what database are you using?

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

      @@Javatechie oracle database,and queried using springboot application using jdbc client

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

    Do you know if this is sql injection safe? Thank you in advance!!!!
    In another hand. How can be implemented a filter via query param? I have always problems with this :( thank you a lot

    • @pankajsarda7010
      @pankajsarda7010 Год назад +1

      This is not sql injection safe.
      Facing issue, any ide how to do it?

  • @vishalpattnaik1996
    @vishalpattnaik1996 10 месяцев назад +1

    does this mean jdbcTemplate is now deprecated ?

    • @Javatechie
      @Javatechie  10 месяцев назад

      No absolutely not . This api is built on top of it

  • @nagendrad9263
    @nagendrad9263 Год назад +1

    Second comment ❤

  • @JavaLovers
    @JavaLovers Год назад +2

    First comment

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

    It’s a unnecessary repeated feature though

  • @PeterSarazin
    @PeterSarazin 7 месяцев назад

    Could you show an example of a search on a partial name or title using the LIKE operator with JdbcClient? I have been having some trouble getting that to work. I have done this many times successfully with myBatis or JPA.
    Here is a similar code snippet that I was trying but not sure what I have wrong. I was testing it by just passing lowercase a or e, but not getting any results trying to use .params() method. It does work if I append partialLastNameLike to the query instead of using parameters, but that is not ideal.
    @Override
    public List findByPartialLastName(String partialLastName) {
    String partialLastNameLike = "'%" + partialLastName.toLowerCase() + "%'";
    return jdbcClient.sql("select * from author where lower(last_name) like :partialLastNameLike")
    .param("partialLastNameLike",partialLastNameLike, Types.VARCHAR)
    .query(Author.class)
    .list();
    }
    }

  • @hanumanthram6754
    @hanumanthram6754 Год назад +1

    throw new IllegalArgumentException("Invalid positional parameter value of type Iterable (" + value.getClass().getSimpleName() + "): Parameter expansion is only supported with named parameters.");
    getting this exception if use
    jdbcClient.sql("INSERT INTO book(id, name, title) VALUES (?,?,?)")
    .param(List.of(book.getId(), book.getName(), book.getTitle()))
    .update();
    working with:
    jdbcClient.sql("INSERT INTO book(id, name, title) VALUES (:id,:name,:title)")
    .param("id", book.getId())
    .param("name", book.getName())
    .param("title", book.getTitle())
    .update();

    • @Javatechie
      @Javatechie  Год назад +1

      List of will work please check import statement also copy paste my piece of code and check

    • @girishanker3796
      @girishanker3796 Год назад +1

      You have used .param() instead of .params()
      it should be .params(List.of(book.getId(), book.getName(), book.getTitle()))
      Hope this helps