Forums Register Login

Fetching Bidirectional DbRef relations Spring Data + MongoDB

+Pie Number of slices to send: Send
Hi all,

I am new to MongoDB. I am preparing an example for learning and seems like when working with bi-directional relationship with Spring Data & DBRef, MongoMappingConverter gets into end-less cycle and keeps reading the association again and again.

I wonder if it is the rare scenario(quite commong in ORMs though), couldn't get any help on this. One option could be writing custom converter and ignoring anyone side of relation, but that will turn my in-memory bean into a stale state.

Please share ideas on this.

Thanks.
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1976 times.
Similar Threads
Integrate with JPA/Spring/Hibernate ?
MongoDB ..good starting point?
Do I have to create Repository classes in MongoDB - spring configuration?
MongoDB and NoSQL - when to use or not use it?
Spring-data and MongoDB integration : noSuchbeandefinitionexception : No bean name "mongoTemplate"
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:42:42.