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

  Рет қаралды 54,168

Dev2Prod Coding

Dev2Prod Coding

Күн бұрын

Пікірлер: 60
@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!
@nagamanibuditi7577
@nagamanibuditi7577 Ай бұрын
omg...so clear, y didnt i find this vid before, thanks a lot for this
@krishnadhaval6021
@krishnadhaval6021 2 жыл бұрын
Very well explained.. Keep it up
@dev2prodcoding
@dev2prodcoding 2 жыл бұрын
Thank you, I will
@vitormarcato8901
@vitormarcato8901 Жыл бұрын
Você é muito inteligente, meu chapa! Parabéns!
@dev2prodcoding
@dev2prodcoding Жыл бұрын
Thank You!!
@sagarbora7768
@sagarbora7768 2 жыл бұрын
Hi bro video after so long BTW I reallly liked dur videos
@dev2prodcoding
@dev2prodcoding 2 жыл бұрын
Thank you so much
@JoshTonyKlementJ
@JoshTonyKlementJ 7 ай бұрын
Nice Video Sir Thank you
@dev2prodcoding
@dev2prodcoding 5 ай бұрын
So nice of you
@gerwinterpstra8698
@gerwinterpstra8698 Жыл бұрын
Thanks! Clear explanation!
@dev2prodcoding
@dev2prodcoding Жыл бұрын
Thanks for watching!
@pradeepappu4438
@pradeepappu4438 2 жыл бұрын
Well explained it
@dev2prodcoding
@dev2prodcoding 2 жыл бұрын
Thank You!!
@kaviyarasank4891
@kaviyarasank4891 4 күн бұрын
What happens when we try to create a project with already assigned employees, will JPA take care of all the assigned employees by populating the third table? Like you are adding employees after the project creation one by one, what if I want when creating the project itself I want bulk adding of employees?
@toetoeag
@toetoeag 3 ай бұрын
Thank you very much.
@frenkie1212
@frenkie1212 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 2 жыл бұрын
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 kzbin.info/www/bejne/aJfZhqWmjqxsa9k for more on this.
@hariommahajan4788
@hariommahajan4788 2 жыл бұрын
Very nice explained..👏 Sir please make video on how to remove assigned project for particular emp.
@tonycavanagh1929
@tonycavanagh1929 2 жыл бұрын
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
@samuraiwolf8200
@samuraiwolf8200 Жыл бұрын
Thank you very much!
@dev2prodcoding
@dev2prodcoding 11 ай бұрын
You're welcome!
@nooruddinraotiwala353
@nooruddinraotiwala353 10 ай бұрын
how does scenario looks in db that u didnt show what happened to the joineTable ???
@yahyawins0550
@yahyawins0550 Жыл бұрын
Bro, what about the sql sripit ,
@AbhikKumarPal-s5l
@AbhikKumarPal-s5l 11 ай бұрын
THANK YOU!
@dev2prodcoding
@dev2prodcoding 11 ай бұрын
You're welcome!
@FutureTech_Explorers
@FutureTech_Explorers Жыл бұрын
Finally i have found.....What i excellently want.
@dev2prodcoding
@dev2prodcoding Жыл бұрын
Glad to hear that!!
@satyadasari1485
@satyadasari1485 6 ай бұрын
how can i do if i want employee list in particular project along with project details ???
@massimoramaj3233
@massimoramaj3233 9 ай бұрын
Is there any specific reason why you did not use @Getter and @Setter in employee entity?
@ShraboniSinha-s8z
@ShraboniSinha-s8z 11 ай бұрын
Thank you
@dev2prodcoding
@dev2prodcoding 11 ай бұрын
You're welcome
@trunguck179
@trunguck179 8 ай бұрын
thank u so much
@dev2prodcoding
@dev2prodcoding 5 ай бұрын
Glad it helped!
@sandhyalakshmi1697
@sandhyalakshmi1697 2 жыл бұрын
Thanks a lot..!!
@dev2prodcoding
@dev2prodcoding 2 жыл бұрын
You are welcome!
@rohitpadile7088
@rohitpadile7088 7 ай бұрын
💪💪💪💪
@medyazidhamlaoui2703
@medyazidhamlaoui2703 Жыл бұрын
Thank you, what i do whene i want to assign project to Employee ?
@TheKnightKing007
@TheKnightKing007 10 ай бұрын
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
@cvgaviao
@cvgaviao 11 ай бұрын
What if the relationship has attributes ?
@sandhyalakshmi1697
@sandhyalakshmi1697 2 жыл бұрын
I'm getting stack overflow error...even after using @JsonIgnore.... actually I'm using DTO classes
@chetankarale5987
@chetankarale5987 Жыл бұрын
I am getting same error
@ASGARDIAASGARDIA
@ASGARDIAASGARDIA Жыл бұрын
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?
@gajanangaikwad8934
@gajanangaikwad8934 10 ай бұрын
Can you tell me how to delete the mapping
@ranjitchill
@ranjitchill Жыл бұрын
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.
@AliHaris-y5g
@AliHaris-y5g 7 ай бұрын
same problem
@MultiCrashcar
@MultiCrashcar 2 жыл бұрын
I LOVE YOUUU BROOO!! THANKS
@عبدالرحمنخالد-ش4ت6ي
@عبدالرحمنخالد-ش4ت6ي 10 ай бұрын
To delete a Project , we need to go throw every employee and remove the project form him to perform our task?
@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
@nidelf
@nidelf Жыл бұрын
why i'm getting, forbidden?
@damarlaomjayasankar2576
@damarlaomjayasankar2576 2 жыл бұрын
How to sort this column which has Many to many relation?
@johnvick8861
@johnvick8861 Жыл бұрын
Use treeset
@TheKnightKing007
@TheKnightKing007 10 ай бұрын
@@johnvick8861 it will remove duplicates
@AshuKumar-kw8bi
@AshuKumar-kw8bi 9 ай бұрын
bhai tera project kisi kam ka nhi hai...tum ache ache comment khud hi fake account se karte ho kya
@nishantsingh4366
@nishantsingh4366 2 жыл бұрын
From where you got getAssignedProjects()in service
@dev2prodcoding
@dev2prodcoding 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!
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 227 М.
Pagination and Sorting | Spring Data JPA | Spring Boot | Dev2Prod Coding
15:47
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 917 М.
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 223 М.
#12 Hibernate Tutorial | Mapping Relations Theory
13:14
Telusko
Рет қаралды 315 М.