MongoDB – Model One-to-One, One-to-Many Relationships Embedded Documents | Spring Boot | Java Techie

preview_player
Показать описание
This tutorial explain you how to perform association mapping in mongo-db using Embedded documents

GitHub:

Blogs:

Facebook Page:

Like & subscribe
Рекомендации по теме
Комментарии
Автор

Appreciate for your hard work and Thank you very much for this video.

ushamahesh
Автор

Nice video. But I was looking for one to many Get query also. You have showcased getting users by address (one-to-one), but not getting users by product. Some cases that is important too. Your title says so. Also, having this structure where products go in user object, when say 100 users have bought 50 products and many more people will buy some of those 50 products. Won't it be a bulky database with repetitions?

PrateekSharma
Автор

Why all the people uses Embedded Documents? Not is more inefficient this strategy than use Referenced Documents?

gibranlara
Автор

thank you so much bro for getting this vidioo

MohdDanishMansoori-ok
Автор

You didn't perform update and delete operation on embedded document. Like, if i want to add one more product to particular user, how will we do that?

krishnay
Автор

How to insert sub-document value that should be refer with main document Id?

sathishh
Автор

In real life, what is more used, embeded or reference documents?

mathiasmartinez
Автор

Sir, How we write query annotation if we want to add findByProduct from the list in the repository?

p.p
Автор

Great Tutorial !! Really very helpful.. Can you please make a vedio on Spring Boot with mongodb and elastic search

bhargaviprodhutoor
Автор

I really appreciate you for sharing great videos? One of the best video I have seen is your
Java collection interview question vide. Could you do video on mongodb interview questions for java/springboot developer?

krishnayellina
Автор

So easy...now here's the task...create the separate collection and acces that collection using dbref...can you do this??

devanshsharma
Автор

Great tutorial ! ❤ But I have some questions. How to model this in many to many relationship in spring boot with mongo db? How to handle cascading operations in that case?

nuwanharsha
Автор

I tried to create one springboot app with mongodb, it is giving me 404 error when I hit through postman, while saving the entity, can u plz comment on this?

simpleTechGuide
Автор

@Java Techie sir. I got an error which shows _id :0 and _class : my model class path. Since I entered my data through postman and got successfully placed message. When I came to compass it's says like this sir.
Kindly need your help sir

abdulyasar
Автор

Hello!!! Basant
should we have to use NoSql DB instead SQL DB in microservice?

shaikshasayyad
Автор

Any video on pagination in Spring. eg. when doing product search based on sorting on few fields lets say price of product

manishagarwal
Автор

Hi, can you please explain how we can use PUT Method to add 1 more array of object of Products in already created User.

vanshkhosla
Автор

does Id annotation is required here as we are not having relationship concept here & How does Mongo knows it has to create Address Document from User Document . Is it derived from User

sarojsahoo
Автор

The example of the CRUD of spring boot and mongodb I think is great, but I suffered to understand your pronunciation in english, for next time try to improve in order to enjoy your great tutorials. Just a good advice

mathiasmartinez
Автор

How do i add only the product part of the json object into a different collection with a product key and map it to user object key

Credi