Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why are Hibernate mappings elements not symmetrical?

 
Marcin Mogiela
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!