If I want to have an IList interface on an object property, the mapping needs and <array>. But, the <many-to-many> withing the array produces errors.
hbm.xml fragment:
<array name="Friends" table="Friends" >
<key column="Person_ID"/>
<many-to-many column="Friend_ID" class="HibernateTest.Person, HibernateTest" />
</array>
Error:
The element <array> has invalid child element: <many-to-many>.
The documentation even has an example how an array can have many-to-many. (
http://nhibernate.sourceforge.net/h2.0. ... tions.html)
What am I doing wrong here?