This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes MongoDB and the fly likes Fetching Bidirectional DbRef relations Spring Data + MongoDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » MongoDB
Bookmark "Fetching Bidirectional DbRef relations Spring Data + MongoDB" Watch "Fetching Bidirectional DbRef relations Spring Data + MongoDB" New topic
Author

Fetching Bidirectional DbRef relations Spring Data + MongoDB

Vish Shukla
Ranch Hand

Joined: Oct 12, 2008
Posts: 111
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.


Thanks & Regards,
Vishal S Shukla (SCJP 93%, SCWCD 94%, SCBCD 100%)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Fetching Bidirectional DbRef relations Spring Data + MongoDB
 
Similar Threads
Spring-data and MongoDB integration : noSuchbeandefinitionexception : No bean name "mongoTemplate"
Integrate with JPA/Spring/Hibernate ?
Do I have to create Repository classes in MongoDB - spring configuration?
MongoDB and NoSQL - when to use or not use it?
MongoDB ..good starting point?