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-tp29497347s17564p29497347.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