IQuery query = session.CreateQuery("from Comment
comment" +
                   " left join fetch commentUser" +

comment.User? I assume this is a typo in the mail, not in the code?

Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Wed, Jun 17, 2009 at 6:37 PM, sed <[email protected]> wrote:

>
> Even if I switch lazy load to false, I get the error.
>
> On Jun 17, 11:33 am, Fabio Maulo <[email protected]> wrote:
> > join fetchonly "join" is not enough.
> >
> > 2009/6/17 sed <[email protected]>
> >
> >
> >
> >
> >
> > > I was under the impression that since I used an outer join I wasn't
> > > using lazy loading.
> >
> > > On Jun 17, 11:24 am, Tuna Toksoz <[email protected]> wrote:
> > > > You should prevent session being closed when using lazy loading. You
> may
> > > > want to use Castle NH FAcility or uNhAddins
> >
> > > > Tuna Toksöz
> > > > Eternal sunshine of the open source mind.
> >
> > >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt.
> ..
> >
> > > > On Wed, Jun 17, 2009 at 6:22 PM, sed <[email protected]> wrote:
> >
> > > > > Yes, my errors come up during unit testing but it is a web
> > > > > application.
> >
> > > > > On Jun 17, 11:21 am, Tuna Toksoz <[email protected]> wrote:
> > > > > > is it in a web environment?
> >
> > > > > > Tuna Toksöz
> > > > > > Eternal sunshine of the open source mind.
> >
> > > > >
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt.
> > > ..
> >
> > > > > > On Wed, Jun 17, 2009 at 6:18 PM, sed <[email protected]>
> wrote:
> >
> > > > > > > This used to work and now it gives me an error. "Could not
> > > initialize
> > > > > > > proxy - no Session" I assume that it has to do with my mapping
> but
> > > I
> > > > > > > am not sure.
> >
> > --
> > Fabio Maulo
> >
>

--~--~---------~--~----~------------~-------~--~----~
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