I remember a long time ago somebody mentioned a way to log mapping errors that keep the project from spinning up.
I've added some custom tables, but I've messed something up in the nHibernate mappings. So I keep getting the dreaded "An association from the table <newtable> refers to an unmapped class..."
I can't find the mapping issue. And I can't figure out how to log those mappings in the nHibernate bootstrap to figure out the real issue.
Anyone remember how to log the nHibernate mappings at startup?
how to debug nHibernate mappings?
how to debug nHibernate mappings?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: how to debug nHibernate mappings?
Sigh. I finally found it after 90 minutes of digging...
Anyone wanna guess what the problem was?
Anyone wanna guess what the problem was?
TGIF.An association from the table <tablename> refers to an unmapped class: CommerceBuilder.Baskets.Basket
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: how to debug nHibernate mappings?
The class name should have been CommerceBuilder.Orders.Basket NOT CommerceBuilder.Baskets.Basket. Am I right?Anyone wanna guess what the problem was?
Re: how to debug nHibernate mappings?
We have a winner
It's the little things that get ya!
It's the little things that get ya!
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com