Spring Boot Mapstruct | Lombok & Mapstruct with Spring Boot CRUD API | Java Bean Mappings

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • You will learn how MapStruct greatly simplifies the implementation of mappings between Java bean types based on a convention over configuration approach.
    My Top Playlists:
    Spring Boot with Angular : • Spring Boot + Angular
    Spring Boot with Docker & Docker Compose : • Spring Boot Docker & D...
    Spring Boot with Kubernetes : • Spring Boot Docker Kub...
    Spring Boot with AWS : • Spring Boot + AWS
    Spring Boot with Azure : • Spring Boot Azure
    Spring Data with Redis : • Spring Data with Redis
    Spring Boot with Apache Kafka : • Apache kafka
    Spring Boot with Resilience4J : • SpringBoot Resilience4j

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

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

    Thank you for the clear steps. This was a lot better than a lot of other articles.

  • @meryemOuyouss2002
    @meryemOuyouss2002 3 หลายเดือนก่อน

    Nice ,you explain mapstruct clearly,I like really like it

  • @321jeR
    @321jeR ปีที่แล้ว

    Man you video about MapStruct is the best . Thanks .

  • @Behnaz68M
    @Behnaz68M 10 หลายเดือนก่อน

    Thank you. It was totally complete and useful. Examples were good and understandable.

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

    Thanks Man, This video is a one stop shop. Covered many things. Great Work keep going .

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

    Thank you a lot for your explanations and demonstrations. I'm new to Java, came from C# and you explained everything needed well enough to understand.

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

    Thank you for this amazing tutorial, it was helpful for me! please keep doing this amazing content!

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

    Great work. Clean code with struct mapper. Thank you so much. Keep it up

  • @HaloTehnoTown
    @HaloTehnoTown 7 หลายเดือนก่อน

    Thanks a lot Techno Town Techie

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

    thanks for this one......cleared and understood some confusing topics.....plz make such videos
    🤗

  • @lauie.0001
    @lauie.0001 2 ปีที่แล้ว

    Great work! Very helpful. Keep it up!

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

    Thanks, Very informative.

  • @ShubhamKumar-sv4iw
    @ShubhamKumar-sv4iw 11 หลายเดือนก่อน

    thank you bro for this video. it helped me get started with @mapper

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

    Very helpful video ..ty for creating such a good content

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

    Very informative

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

    Thank you so much!

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

    Awesome! Thanks!

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

    any github repository?

  • @funvibesbyanimesh
    @funvibesbyanimesh 5 หลายเดือนก่อน

    Thank you

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

    Simple explanation. Please keep posting Microservices videos.

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

    Awesome work! MapStruct is super useful. What's the best way to map relationships? E.g. Product is 1..1 with Order, and we want to just use order ID in the DTO, but the actual Order instance in the jpa model?

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

    i have a problem, i don't know why my implementation class does not generated

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

    Why you are returning Product in the post call why not ProductDto?

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

    Shows error in productmapper. it says, "Could not autowire. No beans of 'ProductMapper' type found."

  • @David-rz4vc
    @David-rz4vc ปีที่แล้ว

    I hate the fact that the mapping is string for column name (desc -> description). You change the name of your property and now u get an unexpected bug.

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

    in this video, most of the mapstruct features are covered 😊

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

    java: No implementation was created for ReportMapper due to having a problem in the erroneous element java.util.ArrayList. - how to fix this

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

    Good video 👍

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

    Good one. Why have you renamed to description from desc when you got some error. Should we not have different variable names between DTO and Entity

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

      Srinivas,
      If field name is 'desc' , MySQL fails to create a table and this issue is not related to the mapstruct mappings error.
      Yes, You can have different variable names between DTO and Entity.

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

    Bro i have doubt when using mapstruct for dto purpose, while transfer data from dto to entity , in dto except value are getting null. How should I solve that

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

    Awesome video! I am facing an issue though. When I am doing mvn clean install for mapstruct processor it's throwing some error saying some fields are missing.
    This is because it is scanning all the files where mapping is not really required.
    Is there any way we can configure mapstruct to work on specific dto and entity.
    Thanks in advance

  • @Saurabh2816
    @Saurabh2816 6 หลายเดือนก่อน

    Can you please provide github url for your repo?

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

    hi,
    I tried your approach with bit different fields but getting some hibernate related error,, can you please help me in this regard? Error is like
    Could not determine type for: java.util.List, at table: employee, for columns: [org.hibernate.mapping.Column(emp_addr_list)]

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

    please which app do you use for screen recording?

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

    Please which app do you use to record your screen

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

    pls make more videos!!!

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

    Great

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

    thanks ...! how to map byte[] productImage in Product class to Multipart productImage in ProductDto class

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

    What's use of util package in appilcation and what types of classes we can write under util package?

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

      1. A utility class is a class that defines a set of methods that perform common, often re-used functions. Most utility classes define these common methods under static scope.
      2. A realtime application contains util classes like Logging, Monitoring, Custom Http Headers...etc.
      3. Examples of utility classes include java.util.Collections which provides several utility methods (such as sorting and searching) on objects that implement a Collection.

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

    where is update? )))

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

    Tkanks Teacher , very good !!, one question , because Do you use @Id private long Id in the Dto , is not generated by @GeneratedValue(strategy = GenerationType.IDENTITY) as the Entity ?

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

    Good video, Good explaination, but terrible audio. Just a constructive feedback, bro you need to turn off your Fan while recording audio. Right now the audio is chunked. Your audio seriously can be much much better. I wish the channel grows manyfolds.

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

    Hi Thanks...do you have github?

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

    I am getting a circular view issue on rest controller

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

      Can you please share your controller

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

      @@technotowntechie9732 hi i needed to know how to map for the different data type like hashmap to another hashmap

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

    Please provide me the GitHub link

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

      github.com/shameed1910/spring-mapstruct.git

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

      Hi I'm stuck while doing mapstruct implementation could you please help

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

      @@sweety9774 what is the issue ?

    • @Explore_mylife
      @Explore_mylife 10 หลายเดือนก่อน

      This video is more informative and clear my concept. Thank you ❤

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

    Do we have to define relationship in DTO also? Like:-
    Getter
    @Setter
    public class ProductRatingDto {
    @Id
    private long Id;
    @ManyToOne
    @JoinColumn(name = "ProductId")
    private Product product;
    @ManyToOne
    @JoinColumn(name = "UserId")
    private User user;
    private int Rating;
    }

  • @HaloTehnoTown
    @HaloTehnoTown 7 หลายเดือนก่อน

    Thanks a lot Techno Town Techie

  • @HaloTehnoTown
    @HaloTehnoTown 7 หลายเดือนก่อน

    Thanks a lot Techno Town Techie

  • @HaloTehnoTown
    @HaloTehnoTown 7 หลายเดือนก่อน

    Thanks a lot Techno Town Techie

  • @HaloTehnoTown
    @HaloTehnoTown 7 หลายเดือนก่อน

    Thanks a lot Techno Town Techie

  • @TheLorenx95
    @TheLorenx95 7 หลายเดือนก่อน

    Thanks a lot Techno Town Techie