Hi Tuna - ok. I will definitely use the batching feature.

Our little dialoge got me thinking again, so now I have created  a
generic "Initialize(object)" method on DAO interface, which in turn
invokes the NHibernateUtil.Initialize(object) method.

My domain objects know about DAO interfaces so whenever I feel like it
I can invoke this method to ensure my collections are fully loaded,
without having the NHibernate classes leak into my domain.

Regards
Thomas


On 15 Mar., 10:09, Tuna Toksoz <[email protected]> wrote:
> Then I believe the link with batching will help ;)
>
> Tuna 
> Toksözhttp://tunatoksoz.comhttp://devlicio.us/blogs/tuna_toksozhttp://twitter.com/tehlike
>
> Typos included to enhance the readers attention!
>
>
>
> On Sun, Mar 15, 2009 at 1:15 AM, Thomas Koch <[email protected]> wrote:
>
> > Hi Tuna - thanks for the link.  :)
>
> > It makes me nervous though when you write that. What is it that is
> > nagging you? Is this not a normal approach?
>
> > Would you rather have me do a: NHibernateUtil.Initialize(A.Bs)
>
> > A few details about my setup. We are using NH 2.0 in an ASP.NET app.
> > We use the open-session-in-view pattern with the DAO pattern to load
> > our entities. Each DAO class have a corresponding interface, thus no
> > NHibernate details are leaking into the rest of the application.
>
> > Thomas
>
> > On 15 Mar., 00:04, Tuna Toksoz <[email protected]> wrote:
> > > section 14.3
>
> > >http://www.hibernate.org/hib_docs/nhibernate/html/performance.html
>
> > > But what you're doing doesn't sound right to me.
>
> > > Tuna Toksözhttp://tunatoksoz.comhttp://
> > devlicio.us/blogs/tuna_toksozhttp://twitter.com/tehlike
>
> > > Typos included to enhance the readers attention!
>
> > > On Sun, Mar 15, 2009 at 1:00 AM, Tuna Toksoz <[email protected]> wrote:
> > > > oh you mean batching then.
>
> > > > Tuna Toksöz
> > > >http://tunatoksoz.com
> > > >http://devlicio.us/blogs/tuna_toksoz
> > > >http://twitter.com/tehlike
>
> > > > Typos included to enhance the readers attention!
>
> > > > On Sun, Mar 15, 2009 at 12:58 AM, Thomas Koch <[email protected]>
> > wrote:
>
> > > >> As far as I understand it, the setup I am using will lead to select n
> > > >> +1, when doing a foreach on the collection of B's. Please correct me-
> > Skjul tekst i anførselstegn -
>
> > > - Vis tekst i anførselstegn -- Skjul tekst i anførselstegn -
>
> - Vis tekst i anførselstegn -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to