Entity Mapping | @ManyToMany @JoinTable with REST| Spring Data JPA | Spring Boot | Dev2Prod Coding

Sdílet
Vložit
  • čas přidán 28. 06. 2022
  • This video will focus on @ManyToMany Entity Mapping in Spring Data JPA development & testing via REST endpoints.
    Github:
    github.com/Dev2ProdCoding/spr...
    In case you like this video please Like, Subscribe & press the bell icon.
    Dev2Prod Coding

Komentáře • 55

  • @rohitpadile7088
    @rohitpadile7088 Před 9 dny

    💪💪💪💪

  • @theNorth473
    @theNorth473 Před rokem +2

    Wow this was awesome. There are some good tutorials out there but this is a level above anything else I've seen yet. Thank you!

  • @vitormarcato8901
    @vitormarcato8901 Před rokem +1

    Você é muito inteligente, meu chapa! Parabéns!

  • @hariommahajan4788
    @hariommahajan4788 Před rokem +1

    Very nice explained..👏
    Sir please make video on how to remove assigned project for particular emp.

  • @krishnadhaval6021
    @krishnadhaval6021 Před 2 lety +1

    Very well explained.. Keep it up

  • @gerwinterpstra8698
    @gerwinterpstra8698 Před 6 měsíci +1

    Thanks! Clear explanation!

  • @JoshTonyKlementJ
    @JoshTonyKlementJ Před 28 dny

    Nice Video Sir Thank you

  • @vivianfreitas9726
    @vivianfreitas9726 Před 5 měsíci

    Mano, tu é um gênio!!! Estou há 2h pensando como eu poderia associar um @ManyToMany no JSON já que eu sabia que os meus dois Entity estavam funcionando como esperado. Agora, terei que ver como esse código funciona para futuras apliações.

  • @sagarbora7768
    @sagarbora7768 Před 2 lety +1

    Hi bro video after so long
    BTW I reallly liked dur videos

  • @samuraiwolf8200
    @samuraiwolf8200 Před 5 měsíci

    Thank you very much!

  • @pradeepappu4438
    @pradeepappu4438 Před rokem

    Well explained it

  • @sandhyalakshmi1697
    @sandhyalakshmi1697 Před rokem +1

    Thanks a lot..!!

  • @tonycavanagh1929
    @tonycavanagh1929 Před rokem

    JsonIgnore stops the circular but also stops adding employee to Project, so just makes it a more complex one to many.

    • @johnvick8861
      @johnvick8861 Před rokem +1

      Use @jsonbackreferrence on top of get method

  • @trunguck179
    @trunguck179 Před měsícem

    thank u so much

  • @user-ux4fe6xb4j
    @user-ux4fe6xb4j Před 4 měsíci

    THANK YOU!

  • @MultiCrashcar
    @MultiCrashcar Před rokem

    I LOVE YOUUU BROOO!! THANKS

  • @user-bd7kd2hf4v
    @user-bd7kd2hf4v Před 4 měsíci

    Thank you

  • @frenkie1212
    @frenkie1212 Před rokem +2

    I love you smart Indian wizard!
    This helped a lot.
    I do have one question though: is there a way to create an Employee with a Post method that also takes in input a set of Projects?
    Ill' try to explain it better. In the video you create an Employee, you create a Project and then you add the projects to the employee one by one. I'm looking for a way to add multiple projects to the employee when I'm creating the employee. So in your example when creating the employee I would like to pass a name (employee name) and a set that contains multiple projects.

    • @dev2prodcoding
      @dev2prodcoding  Před rokem

      Thanks...Glad that you liked it.
      Is there a way to create an Employee with a Post method that also takes in input a set of Projects? -> Yes, it can be done. You can use one-to-many mapping to add multiple projects to the employee. You can check czcams.com/video/2fvUrpYG95w/video.html for more on this.

  • @FutureTech_Explorers
    @FutureTech_Explorers Před 11 měsíci

    Finally i have found.....What i excellently want.

  • @user-ld4sk3bk5w
    @user-ld4sk3bk5w Před rokem

    In MYSQL Workbench the project is assigned to employee/s but in Postman it doesn't show to be assigned. What could be the problem?

  • @nooruddinraotiwala353
    @nooruddinraotiwala353 Před 3 měsíci

    how does scenario looks in db that u didnt show what happened to the joineTable ???

  • @yahyawins0550
    @yahyawins0550 Před 8 měsíci

    Bro, what about the sql sripit ,

  • @sandhyalakshmi1697
    @sandhyalakshmi1697 Před rokem +4

    I'm getting stack overflow error...even after using @JsonIgnore.... actually I'm using DTO classes

  • @cvgaviao
    @cvgaviao Před 4 měsíci

    What if the relationship has attributes ?

  • @masoomraza2869
    @masoomraza2869 Před 2 lety +1

    I am new to Spring boot and facing challenge to implement join query in specification. could you please help?

    • @dev2prodcoding
      @dev2prodcoding  Před 2 lety

      Please share your problem, devtoprodcoding@gmail.com

  • @ranjitbhosale8079
    @ranjitbhosale8079 Před rokem +1

    When I'm updating the record It is showing Customer with projects but when I'm try to get all records or find by id It is showing [ ] for projects.
    I don't understand why ?
    Can you help....Pls.

  • @massimoramaj3233
    @massimoramaj3233 Před 2 měsíci

    Is there any specific reason why you did not use @Getter and @Setter in employee entity?

  • @antoninodelfiume5932
    @antoninodelfiume5932 Před rokem

    why i'm getting, forbidden?

  • @medyazidhamlaoui2703
    @medyazidhamlaoui2703 Před 6 měsíci

    Thank you, what i do whene i want to assign project to Employee ?

    • @TheKnightKing007
      @TheKnightKing007 Před 3 měsíci

      if u want assign one project to one person means go for @OneToOne,
      if multiple project to one person mean go for @OneToMany,
      if one project involved to many persons means @ManyToOne
      if Many person collap with many project means go for @ManyToMany

  • @gajanangaikwad8934
    @gajanangaikwad8934 Před 3 měsíci

    Can you tell me how to delete the mapping

  • @damarlaomjayasankar2576

    How to sort this column which has Many to many relation?

  • @user-kh7yw7ux7o
    @user-kh7yw7ux7o Před 3 měsíci

    To delete a Project , we need to go throw every employee and remove the project form him to perform our task?

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi Před 2 měsíci

    bhai tera project kisi kam ka nhi hai...tum ache ache comment khud hi fake account se karte ho kya

  • @nishantsingh4366
    @nishantsingh4366 Před rokem +2

    From where you got getAssignedProjects()in service

    • @dev2prodcoding
      @dev2prodcoding  Před rokem +2

      Please check Employee entity class, there I have defined
      private Set assignedProjects = new HashSet();
      getAssignedProjects() is the getter method for the same which is auto generated by lombok.Data annotation. Hope it helps!