2006-08-30

NHibernate 1.2.0.Alpha1

I finally got around to implementing this into my code base, but as you would expect not everything worked first up. The saving worked fine, i could see the rows in the database. It was just the loading. At initial start NHibernate complains about virtuals on all you proxys for lazy loading, but i fixed them. A gut feeling i had was that this was to do with all to do with lazy loading.

As it turns out all collections and associations are lazy loaded in this new version:
http://forum.hibernate.org/viewtopic.php?t=960004&start=15&sid=ba44698acc40eaae77d6d73d7561ba83
http://dotnet.org.za/kuate/archive/2006/05/29/52751.aspx
So just put that attribute into my mapping file and everything went back to normal.

The real underlying cause of all this is that when things get lazy loaded they are a proxy type, not the actual type in the domain model. So when i debugged it like this:
Console.WriteLine(n.GetType());
I was getting a type name like this with these names all joined together with under scores
ProxyInterfaceSystemObject
INHibernateProxy
ISerializable
My tests for type (x is MyType) all fail silently, they really should be converted to proxy interfaces, but i don't need to atm, and i get 20% extra speed.

4 comments:

oakleyses said...

ray ban sunglasses, tory burch outlet, nike roshe, oakley sunglasses, ray ban sunglasses, christian louboutin, ray ban sunglasses, louis vuitton outlet, christian louboutin uk, christian louboutin outlet, louis vuitton, nike outlet, cheap oakley sunglasses, oakley sunglasses, longchamp outlet, polo ralph lauren, longchamp outlet, jordan pas cher, polo ralph lauren outlet online, burberry pas cher, longchamp pas cher, nike free, prada outlet, nike free run, ugg boots, tiffany jewelry, ugg boots, air max, polo outlet, oakley sunglasses, christian louboutin shoes, longchamp outlet, uggs on sale, louis vuitton outlet, tiffany and co, louis vuitton outlet, kate spade outlet, michael kors pas cher, replica watches, louboutin pas cher, sac longchamp pas cher, gucci handbags, louis vuitton, oakley sunglasses wholesale, chanel handbags, nike air max, replica watches, prada handbags

oakleyses said...

michael kors outlet online, nike blazer pas cher, timberland pas cher, replica handbags, michael kors, sac hermes, coach outlet, ralph lauren uk, vans pas cher, burberry outlet, ray ban pas cher, michael kors outlet, burberry handbags, uggs outlet, mulberry uk, michael kors outlet, michael kors, converse pas cher, north face uk, polo lacoste, nike air max uk, michael kors outlet, abercrombie and fitch uk, nike air force, kate spade, oakley pas cher, nike air max uk, michael kors outlet online, true religion outlet, uggs outlet, north face, ray ban uk, michael kors outlet online, hollister pas cher, nike air max, nike tn, guess pas cher, nike roshe run uk, true religion jeans, true religion outlet, coach purses, sac vanessa bruno, michael kors outlet online, new balance, lululemon canada, nike free uk, hogan outlet, true religion outlet

oakleyses said...

instyler, hollister, oakley, nfl jerseys, jimmy choo outlet, nike air max, north face outlet, soccer jerseys, louboutin, hollister, celine handbags, ghd hair, baseball bats, soccer shoes, gucci, ray ban, beats by dre, longchamp uk, lululemon, nike air max, ralph lauren, ferragamo shoes, bottega veneta, converse outlet, p90x workout, mcm handbags, nike trainers uk, converse, vans outlet, north face outlet, giuseppe zanotti outlet, hermes belt, reebok outlet, mont blanc pens, hollister clothing, chi flat iron, babyliss, herve leger, mac cosmetics, nike roshe run, valentino shoes, insanity workout, vans, nike huaraches, wedding dresses, iphone cases, timberland boots, new balance shoes, abercrombie and fitch, asics running shoes

oakleyses said...

canada goose, louis vuitton, replica watches, juicy couture outlet, pandora jewelry, canada goose, ugg,uggs,uggs canada, doudoune moncler, canada goose outlet, canada goose uk, canada goose jackets, louis vuitton, moncler outlet, barbour, pandora charms, ugg, moncler, louis vuitton, ugg uk, lancel, barbour uk, marc jacobs, moncler, links of london, karen millen uk, toms shoes, swarovski, wedding dresses, canada goose, louis vuitton, ugg,ugg australia,ugg italia, pandora jewelry, moncler, moncler outlet, supra shoes, hollister, swarovski crystal, thomas sabo, juicy couture outlet, canada goose outlet, moncler uk, pandora uk, coach outlet, ugg pas cher, louis vuitton, montre pas cher, canada goose outlet, moncler