Hi!
Quote:
I know NHibernate doesn't support lazy loaded columns (shame!).
You should read this:
http://hibernate.bluemars.net/403.htmlQuote:
I have got the "component" working, which is great, but this doesn't seems to support lazy loading either (i.e. it would be nice if NHibernate could load all columns of a component and instantiate it when the component was accessed.
You have to do this manually, read
this and
this together with
this from the manual.
Quote:
So, is the only way for me not to load all properties at once, to split my class into parts and set up one-to-one lazy relationships between the parts? This is going to be quite tedious, and make coding a little more complex.
No, you should not twist and bend you domain model to get hibernate to work properly for you. That would be bad OO. Hibernate embraces the POJO/POCO approaches for creating domain model classes.
Hope some of the links proved to be useful.
Cheers,
Steinar.