Forums Register Login

Why are Hibernate mappings elements not symmetrical?

+Pie Number of slices to send: Send
Hi,

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 ]
Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 798 times.
Similar Threads
Hibernate Association
Many-To-Many Association - 4 Ways
Hibernate Association table - extra column
Hibernate Association
Question on Unidirectional Association
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:01:56.