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

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

Пікірлер: 53

  • @JoshTonyKlementJ
    @JoshTonyKlementJ9 күн бұрын

    Nice Video Sir Thank you

  • @theNorth473
    @theNorth473 Жыл бұрын

    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!

  • @dev2prodcoding

    @dev2prodcoding

    Жыл бұрын

    Wow, thanks!

  • @hariommahajan4788
    @hariommahajan4788 Жыл бұрын

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

  • @vitormarcato8901
    @vitormarcato8901 Жыл бұрын

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

  • @dev2prodcoding

    @dev2prodcoding

    8 ай бұрын

    Thank You!!

  • @gerwinterpstra8698
    @gerwinterpstra86986 ай бұрын

    Thanks! Clear explanation!

  • @dev2prodcoding

    @dev2prodcoding

    4 ай бұрын

    Thanks for watching!

  • @vivianfreitas9726
    @vivianfreitas97264 ай бұрын

    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.

  • @trunguck179
    @trunguck179Ай бұрын

    thank u so much

  • @krishnadhaval6021
    @krishnadhaval6021 Жыл бұрын

    Very well explained.. Keep it up

  • @dev2prodcoding

    @dev2prodcoding

    Жыл бұрын

    Thank you, I will

  • @samuraiwolf8200
    @samuraiwolf82004 ай бұрын

    Thank you very much!

  • @dev2prodcoding

    @dev2prodcoding

    3 ай бұрын

    You're welcome!

  • @frenkie1212
    @frenkie1212 Жыл бұрын

    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

    Жыл бұрын

    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 kzread.info/dash/bejne/ZJqqt9SpiaqfZdo.html for more on this.

  • @MultiCrashcar
    @MultiCrashcar Жыл бұрын

    I LOVE YOUUU BROOO!! THANKS

  • @sandhyalakshmi1697
    @sandhyalakshmi1697 Жыл бұрын

    Thanks a lot..!!

  • @dev2prodcoding

    @dev2prodcoding

    Жыл бұрын

    You are welcome!

  • @user-ux4fe6xb4j
    @user-ux4fe6xb4j4 ай бұрын

    THANK YOU!

  • @dev2prodcoding

    @dev2prodcoding

    3 ай бұрын

    You're welcome!

  • @sagarbora7768
    @sagarbora7768 Жыл бұрын

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

  • @dev2prodcoding

    @dev2prodcoding

    Жыл бұрын

    Thank you so much

  • @tonycavanagh1929
    @tonycavanagh1929 Жыл бұрын

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

  • @johnvick8861

    @johnvick8861

    Жыл бұрын

    Use @jsonbackreferrence on top of get method

  • @user-bd7kd2hf4v
    @user-bd7kd2hf4v4 ай бұрын

    Thank you

  • @dev2prodcoding

    @dev2prodcoding

    3 ай бұрын

    You're welcome

  • @pradeepappu4438
    @pradeepappu4438 Жыл бұрын

    Well explained it

  • @dev2prodcoding

    @dev2prodcoding

    Жыл бұрын

    Thank You!!

  • @ranjitbhosale8079
    @ranjitbhosale8079 Жыл бұрын

    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.

  • @user-ld4sk3bk5w
    @user-ld4sk3bk5w Жыл бұрын

    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
    @nooruddinraotiwala3532 ай бұрын

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

  • @FutureTech_Explorers
    @FutureTech_Explorers10 ай бұрын

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

  • @dev2prodcoding

    @dev2prodcoding

    10 ай бұрын

    Glad to hear that!!

  • @massimoramaj3233
    @massimoramaj3233Ай бұрын

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

  • @sandhyalakshmi1697
    @sandhyalakshmi1697 Жыл бұрын

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

  • @chetankarale5987

    @chetankarale5987

    4 ай бұрын

    I am getting same error

  • @yahyawins0550
    @yahyawins05508 ай бұрын

    Bro, what about the sql sripit ,

  • @cvgaviao
    @cvgaviao3 ай бұрын

    What if the relationship has attributes ?

  • @user-kh7yw7ux7o
    @user-kh7yw7ux7o3 ай бұрын

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

  • @masoomraza2869
    @masoomraza28692 жыл бұрын

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

  • @dev2prodcoding

    @dev2prodcoding

    Жыл бұрын

    Please share your problem, devtoprodcoding@gmail.com

  • @medyazidhamlaoui2703
    @medyazidhamlaoui27035 ай бұрын

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

  • @TheKnightKing007

    @TheKnightKing007

    3 ай бұрын

    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
    @gajanangaikwad89343 ай бұрын

    Can you tell me how to delete the mapping

  • @antoninodelfiume5932
    @antoninodelfiume5932 Жыл бұрын

    why i'm getting, forbidden?

  • @damarlaomjayasankar2576
    @damarlaomjayasankar2576 Жыл бұрын

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

  • @johnvick8861

    @johnvick8861

    Жыл бұрын

    Use treeset

  • @TheKnightKing007

    @TheKnightKing007

    3 ай бұрын

    @@johnvick8861 it will remove duplicates

  • @AshuKumar-kw8bi
    @AshuKumar-kw8biАй бұрын

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

  • @nishantsingh4366
    @nishantsingh4366 Жыл бұрын

    From where you got getAssignedProjects()in service

  • @dev2prodcoding

    @dev2prodcoding

    Жыл бұрын

    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!

Келесі