This is an NHibernate issue and I'm not 100% sure, but the error message implies to me that you have a null value in your index column. NHibernate requires your index column to be integer values starting at zero.
However, export the mappings FNH is generating to be sure it's not an issue with the HBM generation. Le May 19, 2009 à 8:38 AM, HMS <[email protected]> a écrit : > > Hello, > > I'm running into the following problems while mapping a List of > objects using List semantics, I can't use a bag because the order is > important. > > However when testing I get the following exception: > > NHibernate.HibernateException: null index column for collection: > SubPhases. > > The mapping looks like this: > > HasMany(p => p.SubPhases) > .Inverse() > .KeyColumnNames.Add("ParentPhase") > .AsList(index => index.WithColumn("idx")) > .Cascade.AllDeleteOrphan(); > > I've also tried > > .AsList() and AsList(index => index.WithColumn("idx").WithType<int>()) > > both without success. > > Am I missing something obvious ? > > Thanks :) > > - HMS > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
