Jpa Query To Return Dto Instead Of Entity

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 13

  • @anarcheo8339
    @anarcheo8339 2 роки тому

    awesome tutorial! thank you and keep it doing :)

  • @Кыргызстан-менинмекеним
    @Кыргызстан-менинмекеним 11 місяців тому +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  11 місяців тому

      Return entity and use MapStruct to map to dto

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

  • @shahramamiri6790
    @shahramamiri6790 2 роки тому

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

  • @Talaria.School
    @Talaria.School 2 роки тому

    👌👍🏻

    • @MikesTechCorner
      @MikesTechCorner  2 роки тому +1

      Thank you for commenting :)

    • @Talaria.School
      @Talaria.School 2 роки тому

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