Thanks Liko,
About your solution to add a global department list in my doCompany..
I'm not sure how to do that, does it imply that my table Departments will need a extra foreign-key to Companies, in addition to the BrancheID key it has now?
How am I otherwise going to map it?
About me missing the point slightly..
Your probably right, it just does what it's supposed to do.
I just expected that since I defined enough attributes for nHibernate to know the structure of my OO and DB model, that it would do some smart optimization.
I thought this, since my example is pretty much the simplest use I could think of, when using a framework like this.
But again, my knowledge is so far not sufficient to oversee it completely.
I believe nHibernate is so flexible in it's features, you simply have to pick a good strategy and don't expect nHibernate to solve every problem you came across when we learned to do it the old fashion way..
Understanding this new framework is so far the biggest plunch into the deep, I have ever experienced over my decade of software development activities.
We could use more good, practical in depth tutorials :-)
|