Kees Jongenburger wrote:

This is exactly the point in which MMbase and Hibernate made different
design choices. The hibernate guys will tell you never to use
many-to-many relations anywhere. There is always a better alternative.
MMbase uses many-to-many relations everywhere. But they both solve the
persisitency problem

Yes. I haven't really managed to good bidireactional  many-to-many
mappings in hybernate. I think mostly because I don't know how to
model that in OO terms. I think in MMBase terms having a thing like a
RelatedNode disscussed presiously would come close to what I would
call perfect. In the current MMBase you still have to choose between
getting the relation or the related node or the custernode.

Hibernates view on the world are pojo's and pointers. Pointers are never bidirectional. MMBases view is similar as the relation databases. There are "foreign keys" which you can use to go both ways.

Nico

PS. I like this part of the discussion. No code thingies.

_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to