In doing some experimentation and research to resolve a problem, I came across the following comment from Sergey (late last year):
[url=http://forum.hibernate.org/viewtopic.php?t=967618&highlight=ilist+index+key]
Quote:
You can't use lists nor maps with <one-to-many> in NHibernate.
[/url]
First, can someone confirm that this is correct??
I love NHibernate and have been using it now for some time. I have spent many hours reading documentation, blogs, examples, etc. All of which refers to <list>, <bag> and <map> being the various collection types available.
I had read that <list> and <map> do not work with bi-directional associations but nowhere (until today!) had I read that <list> and <map> simply do not work
at all with <one-to-many> collections.
If this is true, it seems misleading that this major shortcoming of NHibernate is not mentioned in the documentation.