Entity To DTO Conversion using ModelMapper in Spring Boot Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

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

  • @JavaGuides
    @JavaGuides  3 ปีที่แล้ว

    Course link: courses.javaguides.net/p/building-rest-api-with-spring-boot

  • @talhaakkoc1228
    @talhaakkoc1228 2 ปีที่แล้ว

    The most descriptive tutorial I've ever seen

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

    This is very useful, something new to me to learnings 👍

  • @deekshithmayanna
    @deekshithmayanna 3 ปีที่แล้ว

    Excellent work sir .. !!

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

    Basically to send response of rest API call we use DTO?

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

    Hi The Tuto is very helpful. Thank you for sharing. I notice that the field on the relationship return null value. one to many and many to one. How can i solve that problem. Best

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

    One thing I dont understand the comment class is the same as comment DTO and the post class is the same as the Post DTO, why do you need DTO in these two cases?

  • @KishoreKumar-sl6fk
    @KishoreKumar-sl6fk 3 ปีที่แล้ว +1

    This will work only if the field names of both source and destination are same rite? Wts the practical use of an utility like tis where in both source and destination have same field names??

    • @Seff2
      @Seff2 2 ปีที่แล้ว

      None. Thats why this kind of frameworks suck. They only work in trivial cases. As soon as its more complicated, the work to reconfigure this magic framework is higher than just converting by hand.

  • @Pain-qu5nr
    @Pain-qu5nr 2 ปีที่แล้ว

    Hi! Can I ask how to map multipke tables from 1 database? I'm having trouble with my springboot mapper. 😭

  • @javatechnology24
    @javatechnology24 3 ปีที่แล้ว

    Great tutorial.

  • @eniyakulshreshtha5718
    @eniyakulshreshtha5718 2 ปีที่แล้ว

    how to test the mapping of entity to dto or dto to entity?

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

    Bull bean mapper ?

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

    Another stupid framework that introduces more magic into your project. THis stuff works as long as you use very simple objects. if there is anything with a hint of more complexity (like transfering a string from a child object of one object, and put it into an array of the other object) everything becomes a hundret times more complicated with this magic stuff, than just writing the conversion by hand.