spring-projects/spring-data-mongodb — pull request #209 by thomasdarimont (2014-07-24 14:40:07+00:00)
Title: DATAMONGO-1005 - Improve cycle-detection for DbRef's.

Introduced ObjectPath that collects target objects along the current property path while converting a DBObject to a domain object. If we detect that a potentially nested DBRef points to an object that is already under construction we simply return a reference to that object in order to avoid StackOverFlowErrors otherwise we resolve the DBRef.