> > Sorry, > > FluentNHibernate.Cfg.FluentConfigurationException was caught HResult=-2146233088 Message=An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. Source=FluentNHibernate StackTrace: em FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() em DAL.DALBase.CreateSession() na C:\Users\tscheid\Desktop\Uniodonto\UNIPOAFluentHibernate\Cooperado.DAL\ConfigDAL\DALBase.vb:linha 24 em DAL.CooperadoDAL.GetAll() na C:\Users\tscheid\Desktop\Uniodonto\UNIPOAFluentHibernate\Cooperado.DAL\CooperadoDAL.vb:linha 117 em BLL.CooperadoBLL.GetAll() na C:\Users\tscheid\Desktop\Uniodonto\UNIPOAFluentHibernate\Cooperado.BLL\CooperadoBLL.vb:linha 87 em Aplicativo.Form1.MontaGrid() na C:\Users\tscheid\Desktop\Uniodonto\UNIPOAFluentHibernate\Aplicativo\form1.aspx.vb:linha 79 InnerException: FluentNHibernate.Cfg.FluentConfigurationException HResult=-2146233088 Message=An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. Source=FluentNHibernate StackTrace: em FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() em FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() InnerException: NHibernate.MappingException HResult=-2146232832 Message=Could not compile the mapping document: (XmlDocument) Source=NHibernate StackTrace: em NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) em NHibernate.Cfg.Configuration.AddDeserializedMapping(HbmMapping mappingDocument, String documentFileName) em NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) em NHibernate.Cfg.Configuration.ProcessMappingsQueue() em NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument document) em NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) em NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) em NHibernate.Cfg.Configuration.AddDocument(XmlDocument doc, String name) em NHibernate.Cfg.Configuration.AddDocument(XmlDocument doc) em FluentNHibernate.PersistenceModel.Configure(Configuration cfg) em FluentNHibernate.Cfg.MappingConfiguration.Apply(Configuration cfg) em FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() InnerException: NHibernate.MappingException HResult=-2146232832 Message=composite-id class must override Equals(): Entity.Cooperado Source=NHibernate StackTrace: em NHibernate.Cfg.XmlHbmBinding.ClassCompositeIdBinder.CheckEqualsAndGetHashCodeOverride() em NHibernate.Cfg.XmlHbmBinding.ClassCompositeIdBinder.BindCompositeId(HbmCompositeId idSchema, PersistentClass rootClass) em NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(HbmClass classSchema, IDictionary`2 inheritedMetas) em NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(HbmClass rootClass, IDictionary`2 inheritedMetas) em NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddEntitiesMappings(HbmMapping mappingSchema, IDictionary`2 inheritedMetas) em NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(HbmMapping mappingSchema) em NHibernate.Cfg.Configuration.AddDeserializedMapping(HbmMapping mappingDocument, String documentFileName) InnerException: Thanks!
-- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To view this discussion on the web visit https://groups.google.com/d/msg/fluent-nhibernate/-/LlK7NZaB_FAJ. To post to this group, send email to fluent-nhibernate@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.