NHibernate 1.2.0.1001
In my quest to try and solve my problem of expanding a table into distinct collections (see my other post
here), I thought that using components with collections might help.
It was working reasonably well until I tried to put an <idbag> inside of a <component>. Apparently the schema doesn't allow for this combination.
Not finding any documentation about why you can't do this (though the book seems to indicate that you can...implicity that is), I decided to modify the
nhibernate-mapping-2.0.xsd by inserting:
Code:
<xs:element ref="idbag"/>
on line 523 so that the reference appears just below the 'bag' reference.
I then wrote a test and it appears to persist and retrieve correctly.
My question is, was it an oversight not being able to have an <idbag> in a <component> or is this by design?