Thanks for reporting this issue. I don't think mongodb supports that in
aggregate (single document). Anyway, I have created a Jira issue 
http://fornax.itemis.de/jira/browse/CSC-540 CSC-540  for this so that we can
investigate it and at least prevent endless loop.

/Patrik



rsmith wrote:
> 
> I transitioned a model from using the Hibernate cartridge to MongoDB, and
> it was surprisingly smooth.
> 
> I did run into a problem with an entity with a bidirectional association
> such as:
> 
>       Entity A {
>               aggregateRoot
>               
>               - Set<@A> children <-> parent
>               
>               - @A parent nullable <-> children
>       }
> 
> When attempting to save, the generated Mapper class gets into an endless
> loop in the toData() method because it is following both the parent and
> children associations.
> 
> I changed the association into unidirectional, and resolved the issue.
> 

-- 
View this message in context: 
http://old.nabble.com/MongoDB-cartridge-and-bidirectional-associations-tp29497347s17564p29506189.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to