• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Fetching Bidirectional DbRef relations Spring Data + MongoDB

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic