Тёмный

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

Dev2Prod Coding
Подписаться 2,7 тыс.
Просмотров 46 тыс.
50% 1

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

Опубликовано:

 

28 июн 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@rohitpadile7088
@rohitpadile7088 23 дня назад
💪💪💪💪
@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!
@gerwinterpstra8698
@gerwinterpstra8698 7 месяцев назад
Thanks! Clear explanation!
@dev2prodcoding
@dev2prodcoding 6 месяцев назад
Thanks for watching!
@vitormarcato8901
@vitormarcato8901 Год назад
Você é muito inteligente, meu chapa! Parabéns!
@dev2prodcoding
@dev2prodcoding 9 месяцев назад
Thank You!!
@hariommahajan4788
@hariommahajan4788 2 года назад
Very nice explained..👏 Sir please make video on how to remove assigned project for particular emp.
@vivianfreitas9726
@vivianfreitas9726 5 месяцев назад
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.
@JoshTonyKlementJ
@JoshTonyKlementJ Месяц назад
Nice Video Sir Thank you
@krishnadhaval6021
@krishnadhaval6021 2 года назад
Very well explained.. Keep it up
@dev2prodcoding
@dev2prodcoding 2 года назад
Thank you, I will
@samuraiwolf8200
@samuraiwolf8200 5 месяцев назад
Thank you very much!
@dev2prodcoding
@dev2prodcoding 5 месяцев назад
You're welcome!
@user-ux4fe6xb4j
@user-ux4fe6xb4j 5 месяцев назад
THANK YOU!
@dev2prodcoding
@dev2prodcoding 5 месяцев назад
You're welcome!
@sagarbora7768
@sagarbora7768 2 года назад
Hi bro video after so long BTW I reallly liked dur videos
@dev2prodcoding
@dev2prodcoding 2 года назад
Thank you so much
@trunguck179
@trunguck179 2 месяца назад
thank u so much
@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?
@sandhyalakshmi1697
@sandhyalakshmi1697 Год назад
Thanks a lot..!!
@dev2prodcoding
@dev2prodcoding Год назад
You are welcome!
@nooruddinraotiwala353
@nooruddinraotiwala353 3 месяца назад
how does scenario looks in db that u didnt show what happened to the joineTable ???
@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
@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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2fvUrpYG95w.html for more on this.
@pradeepappu4438
@pradeepappu4438 Год назад
Well explained it
@dev2prodcoding
@dev2prodcoding Год назад
Thank You!!
@user-bd7kd2hf4v
@user-bd7kd2hf4v 5 месяцев назад
Thank you
@dev2prodcoding
@dev2prodcoding 5 месяцев назад
You're welcome
@satyadasari1485
@satyadasari1485 Час назад
how can i do if i want employee list in particular project along with project details ???
@massimoramaj3233
@massimoramaj3233 2 месяца назад
Is there any specific reason why you did not use @Getter and @Setter in employee entity?
@MultiCrashcar
@MultiCrashcar Год назад
I LOVE YOUUU BROOO!! THANKS
@cvgaviao
@cvgaviao 4 месяца назад
What if the relationship has attributes ?
@sandhyalakshmi1697
@sandhyalakshmi1697 Год назад
I'm getting stack overflow error...even after using @JsonIgnore.... actually I'm using DTO classes
@chetankarale5987
@chetankarale5987 5 месяцев назад
I am getting same error
@yahyawins0550
@yahyawins0550 9 месяцев назад
Bro, what about the sql sripit ,
@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-of4bd3ix2w
@user-of4bd3ix2w 20 дней назад
same problem
@masoomraza2869
@masoomraza2869 2 года назад
I am new to Spring boot and facing challenge to implement join query in specification. could you please help?
@dev2prodcoding
@dev2prodcoding 2 года назад
Please share your problem, devtoprodcoding@gmail.com
@antoninodelfiume5932
@antoninodelfiume5932 Год назад
why i'm getting, forbidden?
@gajanangaikwad8934
@gajanangaikwad8934 4 месяца назад
Can you tell me how to delete the mapping
@FutureTech_Explorers
@FutureTech_Explorers Год назад
Finally i have found.....What i excellently want.
@dev2prodcoding
@dev2prodcoding 11 месяцев назад
Glad to hear that!!
@medyazidhamlaoui2703
@medyazidhamlaoui2703 6 месяцев назад
Thank you, what i do whene i want to assign project to Employee ?
@TheKnightKing007
@TheKnightKing007 4 месяца назад
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
@user-kh7yw7ux7o
@user-kh7yw7ux7o 4 месяца назад
To delete a Project , we need to go throw every employee and remove the project form him to perform our task?
@damarlaomjayasankar2576
@damarlaomjayasankar2576 Год назад
How to sort this column which has Many to many relation?
@johnvick8861
@johnvick8861 Год назад
Use treeset
@TheKnightKing007
@TheKnightKing007 4 месяца назад
@@johnvick8861 it will remove duplicates
@AshuKumar-kw8bi
@AshuKumar-kw8bi 2 месяца назад
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!
Далее