Hello,

I am finding a strange error. I've double checked and I am 99% sure
that I've got the "missing" table referenced.

An association from the table Commissions refers to an unmapped class:
Football.Models.FootballUser

>From CommissionMap:

References(x => x.Commissioner, "CommissionerId")
    .Not.Nullable();

>From FootballUserSubclassMap (yes, it is a subclass map):

HasMany(x => x.Commissions)
    .Inverse()
    .LazyLoad()
    .AsBag()
    .Cascade.AllDeleteOrphan();

Which FootballUser extends User, which itself is a subclass mapped
from AbstractCredential. That I know of, no problems with that mapping
(yet).

Aside from checking the mappings are there, I've checked the obvious
things to me. Has anyone done a mapping like this before?

Thank you...

Details:

FluentNHibernate.Cfg.FluentConfigurationException was unhandled
  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:
       at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
in 
c:\work\coding\fluentNhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs:line
235
       at 
Football.Data.Repository.Hibernate.NHibernateSessionFactoryManagerBase.CreateFactory()
in d:\Source\Kingdom
Software\FootballSimulator\Working\src\Football.Data\Repository\Hibernate\NHibernateSessionFactoryManagerBase.cs:line
131
       at Kingdom.Repository.SessionFactoryManagerBase`1.get_Factory()
in d:\Source\Kingdom
Software\FootballSimulator\Working\src\Kingdom.Repository\SessionFactoryManagerBase.cs:line
37
       at Football.Migrator.Program.PlanWork(Action`1 workPlan) in
d:\Source\Kingdom
Software\FootballSimulator\Working\src\Football.Migrator\Program.cs:line
39
       at Football.Migrator.Program.Main(String[] args) in
d:\Source\Kingdom
Software\FootballSimulator\Working\src\Football.Migrator\Program.cs:line
66
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: NHibernate.MappingException
       HResult=-2146232832
       Message=An association from the table Commissions refers to an
unmapped class: Football.Models.FootballUser
       Source=NHibernate
       StackTrace:
            at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)
            at NHibernate.Cfg.Configuration.SecondPassCompileForeignKeys(Table
table, ISet`1 done)
            at NHibernate.Cfg.Configuration.SecondPassCompile()
            at NHibernate.Cfg.Configuration.BuildSessionFactory()
            at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
in 
c:\work\coding\fluentNhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs:line
230
       InnerException:

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at https://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/d/optout.

Reply via email to