ericfkaufman wrote:
In 2.2 it moved to:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="true">
So it's in the top level declaration. Also, in 3.0 (I think that's the new one the Java kids got), the default is now lazy, so you don't need to specificy it any longer unless you want to switch back to false, which you can still do at the class / collection level obviously.
Ah great, thanks. The documentation was a little ambiguous.
ericfkaufman wrote:
This might very well be the first time I've actually been able to give, instead of recieve, help on Hibernate. :-)
I'm just getting started myself, I'm working on a small-ish project for a client and thought I'd try NHibernate out, everyone was hyping about it and I didn't feel like writing reams of database code.
But the way it works with just a single call to .Save and a mapping file is just
voodoo.
So whilst I can see it works fine when you've got a 1:1 relationship between classes and tables, what happens if a class' members mirror the result of say... a View or Sproc?