• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why are Hibernate mappings elements not symmetrical?  RSS feed

Marcin Mogiela
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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:

[ June 28, 2008: Message edited by: Marcin Mogiela ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!