Or, use projections On Tue, Mar 17, 2009 at 6:49 PM, Ayende Rahien <[email protected]> wrote:
> Create a new mapping, that doesn't have any associations > > > On Tue, Mar 17, 2009 at 6:45 PM, Chucara <[email protected]> wrote: > >> >> I tried: >> >> session.CreateQuery("select job from Job job"); >> >> But it appears that it will either load every related entity, or use >> proxy objects, depending on whether or not I set lazy="false" in my >> hbm.xml. >> >> Is there no way to avoid both lazy and eager loading? I basically want >> no loading. ;) >> >> On 17 Mar., 16:46, Ben Lovell <[email protected]> wrote: >> > Look into projections for returning exactly what you want. >> > >> > Sent from my iPhone >> > >> > On 17 Mar 2009, at 15:34, Chucara <[email protected]> wrote: >> > >> > >> > >> > > We're trying to use nHibernate on our middle tier to loading objects >> > > for the client, but we seem to keep hitting a wall of poor >> > > performance. >> > >> > > - Is it possible to load flat lists of objects? I.e. don't load any >> > > collections or relationships to other tables. We don't wan't any >> > > automatic loading either. We simply want a poco object without >> > > references. >> > >> > > - Is there a best practice for using nHibernate disconnected? It seems >> > > that nHibernate is very good if you can actually use the lazy loading >> > > and caching it offers, but that the same features become a nuisance >> > > when you can't. >> > >> > > We can't help but feel that we don't really have full control of how >> > > objects are loaded. No matter what we do, we can't get it to NOT load >> > > references other than by creating proxy objects, which are >> > > unserializeable outside the session. >> > >> > > We might be doing something completely wrong, but we can't really find >> > > any documentation/examples of how to do it. Does anyone know of anyone >> > > using nHibernate with a middletier/client setup? >> >> >> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
