Why are Hibernate mappings elements not symmetrical?
posted 8 years ago
Let's see on many-to-one element. It describes a property user of a class and indicates an association.
In the below snippet we have many-to-many element as a sub-element of set. The set element describes a class property adverts. The many-to-many sub-element says that adverts property implements many-to-many association between this and a given class.
Wouldn't it be more consistent (see my first example) if many-to-many element was superior to the set element?. It could be like this:
Thanks, Marcin [ June 28, 2008: Message edited by: Marcin Mogiela ]