I have the following mappings:
public class SecurityMap : ClassMap
{
public SecurityMap()
{
Table(\"Security\
Yes its a common problem, you are using the Column "EndDate"
twice in your mapping definition (for both Company and PrimaryListing) and that is not allowed. One of them has to go, or have an additional EndDate column (one for each association)
check this too nHibernate 2.0 - mapping a composite-id *and* many-to-one relationship causes "invalid index" error
and http://devlicio.us/blogs/derik_whittaker/archive/2009/03/19/nhibernate-and-invalid-index-n-for-this-sqlparametercollection-with-count-n-error.aspx