Just because of your perfect solution and exact explanation instead of keeping it long you made it short. I am subscribing your channel. Good Efforts thank you :)
Bro, in address class , during 1-1 7:59 before and after using @OneToOne(mppedby="address") the output/table structure of address is same na, then can u tell me what is the use of that annotation
How foreign key is created in address table? You mentioned address reference inside Employee entity right! then how foreign key is created inside address table?
sir,In @OnetoMany mapping if you want to join address id column into employee table...u are creating reference variable in employee entity only...at the same time,if you want to join colum to address table also u are doing it from employee table only...please clarify...im under impression that if we want to join a column in our target table...we have to create a reference variable of the table that we are fetching the table from,in our target table
I might sound stupid but I found it interesting that f.k @OneToOne private Address address, Employee class has a attribute of address which data type is Address, and it actually stores int value which is addressID? and by setting cascade.all, when we send request payload for saving emps, it will affect Address class and save address info on Address table. And the fk column in emp table will show just int value(AddrID). I learned a lot. and I hope I understand correctly. Thanks!
th-cam.com/video/3wIRc94piU8/w-d-xo.html please check this video where I have explained how to configure DB using application.properties file. Code Link - > github.com/Dev2ProdCoding/spring-data-jpa-springboot/blob/master/src/main/resources/application.properties
I want to ask one q : when you used unidirectional you have not written one to one in address class and when you showed bidirectional then you write one-to-one in address class but there was no difference in output that you showed so why we have to write one-to-one in address class when there is no difference in output?
yeah right, I just watched the video and had the same question. Can I ask you, did you find any information about this, is there any difference? cheers!
Hello bro please reply I have to separate entities flight and airport and I don't want to save the data for airport while saving flight,since airport table is already populated Hope it make sense
if i duplicate my request in postman, so duplicate my entities, that not shoul be happen, because then i have duplicate employees and addresses, how do yo stop this behavior, you put some logical in your service?(sorry for my english)
Great Explanation bro...but one error is occuring actually when we run many to one first time it will save the data but if we add another member of same addresse it will update the data...that means fk_emp_id 1 will replace by 2 so...what to do plz help me
Thanks @roshan....I am assuming by update mapping data you mean updating records in db. For updating you can use same method you used to save it i.e saveAll() or save(). Let me know in case of any other query.
You didn't even show how to right at the get mapping, so you just showed how to do the annotations, how is someone meant to known how to make the get request!!!
Just because of your perfect solution and exact explanation instead of keeping it long you made it short. I am subscribing your channel. Good Efforts thank you :)
Thanks and welcome
I like the fact that you have already created the classes(entity, controllers) before you record the video, which makes the video simple and short
Thanks
Very Good Explained..Thank You.....
Glad it was helpful!
Good point about the tutorial is short and to the point. Keep it up
Thanks...Glad it helped
Never really understood the concept of mappings until I watched this video. You made it so simple and easy..keep uploading. Thanks!!
Glad to hear that
Great Video...Helped me a lot..Thanks
Nice Explanation !! You Got 1 Subscriber!!
Awesome explanation. I hope you can make more videos.
No one beat this content on TH-cam thnks bro🎉
Glad you enjoy it!
Perfect Explanation. Thanks
Glad it was helpful!
Thank you so much. Now I understand how to handle relations :)
Great Video. Just subscribed....
Bro, in address class , during 1-1 7:59 before and after using @OneToOne(mppedby="address") the output/table structure of address is same na, then can u tell me what is the use of that annotation
Short and to the point 🔥🔥🔥🔥
Great explanation 👌🏻😇
Glad you liked it!
your video really very helpfull for me thankyou
short and clear. Thank you
Glad it was helpful!
great explanation. keep up the good work.
Thanks!
Neat and clean video.
Glad you liked it!
Thanks for explaning it too easy bro. Greetings from Mexico.
Glad it helped..Happy Learning!
@@dev2prodcoding bro i have one doubt
Good way of teaching
Thank you..
nice explanation clear my all doubts with in short time thankyou so much
very helpful
Glad to hear that
Perfect explanation😊
Thank you! 😃
thank u so much.. upload more videos .. based on entity
Nice explanation sir..
Good one bro
nice video..cleared all my doubts.thank you
Brilliant, well presented and consice.
Thank you👍
Good work man
Thank you!
Much appreciated dude🙂🙏
Thanks...Happy to help
Best explanation bro
Subscribed. Thanks.
How foreign key is created in address table? You mentioned address reference inside Employee entity right! then how foreign key is created inside address table?
Yep, same doubt
Just to the point.. Thank you.
I am Glad you like it. Thanks!
Thank u!
Thanks..
sir,In @OnetoMany mapping if you want to join address id column into employee table...u are creating reference variable in employee entity only...at the same time,if you want to join colum to address table also u are doing it from employee table only...please clarify...im under impression that if we want to join a column in our target table...we have to create a reference variable of the table that we are fetching the table from,in our target table
Bro nice explaination. Could please make video on total spring project
Sure
Thank You for this video, it helped me a lot
Thank you bro
Thank you very much
You are welcome
wow
I might sound stupid but I found it interesting that f.k @OneToOne private Address address, Employee class has a attribute of address which data type is Address, and it actually stores int value which is addressID? and by setting cascade.all, when we send request payload for saving emps, it will affect Address class and save address info on Address table. And the fk column in emp table will show just int value(AddrID). I learned a lot. and I hope I understand correctly. Thanks!
good
Hi bro .. how to configure my slq or post man in application properties.. will u please solve that
th-cam.com/video/3wIRc94piU8/w-d-xo.html please check this video where I have explained how to configure DB using application.properties file.
Code Link - > github.com/Dev2ProdCoding/spring-data-jpa-springboot/blob/master/src/main/resources/application.properties
nice video!! +1 sub, thanks
Thanks for the sub!
thank you
Welcome!
Sex bro Sex, even I couldn't understand this from Java Brains, Be Coder, and Code With Durgesh. You made a flawless victory...
Thank You!!
How to implement it with Angular though?
I want to ask one q : when you used unidirectional you have not written one to one in address class and when you showed bidirectional then you write one-to-one in address class but there was no difference in output that you showed so why we have to write one-to-one in address class when there is no difference in output?
yeah right, I just watched the video and had the same question. Can I ask you, did you find any information about this, is there any difference? cheers!
I too have the same question
How does it make sense to make a @onetoone relationship? Why not just embed the class?
Why 90% od tutorials are low quality indian ones?
Bro i have one doubt
fk_add_id is not reflecting in employee table. and no data in adreess table. pls help me
Good explanation.. waiting for next video...
bro dhanyawad
Thank You!!
Where is properties file
github.com/Dev2ProdCoding/spring-data-jpa-mappings/tree/master/src/main/resources
plz upload the next part ...onetomany bidirectional and manytomany
Hello bro please reply
I have to separate entities flight and airport and I don't want to save the data for airport while saving flight,since airport table is already populated
Hope it make sense
How about One to Many & Many to One Mapping and also many to many mapping? Can you make a video for that
th-cam.com/video/v40e5SOMftQ/w-d-xo.html
what will be the difference in table structure b/w uni and bi direction of one to one mapping?
There will be no difference.
if i duplicate my request in postman, so duplicate my entities, that not shoul be happen, because then i have duplicate employees and addresses, how do yo stop this behavior, you put some logical in your service?(sorry for my english)
brother podrias hacer uno con orden bbidireccional
bro these indians are hella clutch
No doubt
@@dev2prodcoding hahaha because of you I finished my CS course XD
Great Explanation bro...but one error is occuring actually when we run many to one first time it will save the data but if we add another member of same addresse it will update the data...that means fk_emp_id 1 will replace by 2 so...what to do plz help me
Can you post your employee and address entity here for one to many mapping?
Nice video..... but how to update mapping data
Thanks @roshan....I am assuming by update mapping data you mean updating records in db. For updating you can use same method you used to save it i.e saveAll() or save().
Let me know in case of any other query.
8:12
Push the file to git
url : github.com/Dev2ProdCoding/spring-data-jpa-mappings.git
You didn't even show how to right at the get mapping, so you just showed how to do the annotations, how is someone meant to known how to make the get request!!!
can you add @jsonbackReference, @jsonmanagedreference along with the mappings
thank you