Jpa Query To Return Dto Instead Of Entity

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • Enjoy! :-)
    Thank you for commenting and asking questions.
    Discord server - Where we discuss programming languages and tech - Please use the right channel to your input / question :)
    / discord
    Library sign up referral link:
    lbry.tv/$/invite/@mikemoeller...
    The code is located here:
    github.com/ekim197711/SpringB...
    Follow me on twitter:
    / mikemoelnielsen
    Chat on Discord:
    / discord
    Support me on Patreon:
    / mikemoellernielsen
    Background nature video:
    Video by Engin Akyurt from Pexels
    www.pexels.com/video/beauty-o...
  • НаукаНаука

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

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

    awesome tutorial! thank you and keep it doing :)

  • @user-wg5yw8tw7s
    @user-wg5yw8tw7s 6 месяцев назад +1

    Awesome tutorial, thank you. In your dto you used only parameters with String type. In my case i used List and i can't find any solution. Can you help me, please

    • @MikesTechCorner
      @MikesTechCorner  6 месяцев назад

      Return entity and use MapStruct to map to dto

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

    awesome tutorial! thank you, is it possible to make a video about complex conditional queries and joins for reporting in Spring Boot ?

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

    How to handle it for a jpa native query that returns DTO for the resultset with data from multiple tables. Also is there a way to handle null parameters on native query?

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

      Don't use native query. It is much more readable and you want multiple databases. H2 for development because it is super fast and maybe a Postgres for deployed environments because it is reliable and a good performer.

  • @Talaria.School
    @Talaria.School Год назад

    👌👍🏻

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

      Thank you for commenting :)

    • @Talaria.School
      @Talaria.School Год назад

      @@MikesTechCorner valuable content. Thanks for sharing knowledge and expériences. Keep on. 💙