Spring Boot DTO Example Tutorial | Data Transfer Object Pattern | Line By Line Coding 🔥

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

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

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

    Informative video with unique information. You are awesome👏. Love keyboard keys sound 🙂

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

      Great video as always Ramesh. Is it ok to follow tutorial and then change some css and put it on my repository, I am beginner

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

    this man is a genius, covered almost every aspects of how to design a microservice in just 30 minutes video.

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

    as backend engineer,
    I can attest this dude trully understand springboot for sure.
    he is probably an instructor.
    tnanks for providing such amazing content.
    as junior developer working as full stack developer since 7 months, I just want to say thanks
    I own you a bag my G
    thanks again

    • @never_give_up944
      @never_give_up944 7 หลายเดือนก่อน +1

      You mean "can attest" right?

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

    GRACIAS HERMANO, CON MI NIVEL DE INGLES INTERMEDIO, ENTENDI A LA PERFECCION, Y NO EXISTE NADA MEJOR EN LOS ESTUDIOS QUE UN PROFESOR QUE ENSEÑE DE MANERA SIMPLIFICADA, MUCHAS GRACIAS, THANKS MY BRO

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

    Everyone knows how valuable u r for Java developers

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

    Thanks for the video I learned a lot and finally I was able to understand how a DTO works

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

    THIS WAS AWESOME! thank you so much for helping me keep my job 🤣

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

    I will purchase this course for sure.
    the only thing I hope it is updated.
    but will purchase it anyway.
    you have prooved me you know what you are doing for sure.

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

    Excelente tutorial bro. Your English is good.

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

    Thank you, man, your videos are awesome!!! Regards from Russia!

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

    Great tutorial. Simple and straight-forward! Thanks :)

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

    Great explanation and example. Also helped solve an issue I've been dealing with the past few days!

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

    Learning a lot from your video's.

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

    Great explanation!

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

    Great video! Loving the channel!

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

    Excellent Tutorial....Thank you so much

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

    Thank you sir, this video was what i am looking for,

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

    thank you, your explication is very easy

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

    Amazing video, thanks for the help!

  • @УмарКаригов
    @УмарКаригов ปีที่แล้ว

    Отличный урок👍

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

    very informative video keep it up and thanks

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

    Thanks bro, you helped me a lot

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

    Superb

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

    Great Work

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

    Now that i have all of this in my project wit DTOs and so. How would you implement a JSF view with the data generated in this DTOs?? Imagine for example de a CRUD app with a table, that list all elements in the DB. How do I interact with the DTOs??

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

    Very Good , do you have videos about Login and registration with roles in Spring Boot and angular?

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

    You are amazing

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

    Nicely paced tutorial. Are there any restrictions with this approach, especially in terms of size of data. What if we have millions of records in DB. Is it optimized to work?

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

      For large data, server can send the data as per clients expectations ( in chucks) or provide pagination. There are different approaches to handle large amount of data. This is just example to showcase usage of DTO in spring boot.

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

      @@JavaGuides Thanks for your quick response. I have been building services on all languages but Java. I'm seriously interested in SpringBoot and I bought your course. Yeahhhh
      I'd appreciate if you can include the following modules too
      1. Building API Gateway
      2. Handling scalability issues
      3. Connecting different Microservices - Named services
      4. Deployment with Docker or it's likes

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

      @@krishind99 I am planning to create a complete course on microservices and I will cover these topics. We will let know as we publish new courses or update existing course.

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

    Just Awesome!!!!!!

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

    nice video
    thanks

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

    Hi, i see that you have not post mapping to save the user and location in the controller. it means with H2 database is suffice to put all the information we need in the bootstrap of the application and then use the repository to retrieve the data?

  • @rahul-java-dev
    @rahul-java-dev 3 ปีที่แล้ว

    Thank you Sir...

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

    muchas gracias 😃

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

    Please, I have a question.
    Which package should I use to store the convertEntityToDTO methods? Is it right to have it on service class and package?

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

    nicely explained ..what's the difference between DTO and VO ??

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

    Nice video Ramesh. Congrats on getting a Macbook Air :) Guess this is the first video you made on Macbook! isnt' it? By the way, what tool do you use capture the video recording - in Windows and now in Mac?

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

      In Mac, I use Camtasia for screen recording and video editing.

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

      @@JavaGuides cool. Paid version??

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

      @@raghavanaliassaravananm1546 Yes

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

      @@raghavanaliassaravananm1546
      ..
      ....
      ....
      .
      .
      ....pp.p
      .
      ..
      P.
      .?

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

    Thankyou 😇

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

    Please which app do you use to record your screen

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

    you should use post method in controller to save user and location

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

    Thanks!

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

    Good morning sir, Can we update multiple tables using dto in spring boot?

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

    nice !

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

    Good afternoon sir, what is the purpose of optional variable while declaring @ManyToOne annotation?

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

      The optional attribute of @ManyToOne used to check the field value is null or not at runtime. The nullable attribute is used to specify NOT NULL for column (mapped to field in JPA entity).

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

    Thank you

  • @DanielRodrigues-bx6lr
    @DanielRodrigues-bx6lr ปีที่แล้ว

    You haven't used ModelMapper or MapStruct here?

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

    can you show the example how to get the endpoint from url with retrofit then show it to localhost?

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

    Thanks

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

    thanks! Btw, would be nice to use builder designer patter in UserLocationDTO class

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

      in this case, UserLocationDTO has only one way of being created: all of its properties are mandatory, so with a constructor is enough. Builder pattern is used when some properties are optional, like configuration pojos, not in every POJO

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

    How to update only specific value instead of whole entity in jpa ?????

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

      Make custom query - DTO. 1. Make custom query in db be sure to work. 2.Make interface with fields returned by query 3.Inside repository interface make virtual method who return object you made in step 2 4. Inside controller sent this value to view.

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

    Great! :) :)

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

    How can I use it with mongo db?

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

    What does he mean by jp object in the video? Anybody can reply

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

      You mean JPA entity object. Provide a timestamp where you have a doubt

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

      Thank you for the quick response I really appreciate it The time stamp is 7:20 I think it’s a jpg obj What does this object do? I will appreciate your quick response

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

      It’s not jpg obj. Yes it’s JPA obj at time stamp 7:20

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

    hi show
    example de POST com dto??

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

    You only showd how to create the DTO from the entity. THe other way would be more interesting. How to handle the insert of one JSON (or DTO) that contains two models?

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

    Can you give me the name of your IDE, pls?