But are two different things and, if I well remember, child statefull
session are not completely supported (at least not full tested).A session
may be a "factory" of child sessions but would be strange to see a session
as a factory of a "no-child-stateless-session"...
may be only a semantic matter.

2008/11/27 Stefan Steinegger <[EMAIL PROTECTED]>

>
> I think you misunderstood. It's not "transform", it creates another
> stateless session that shares the same transaction. There is actually
> already a ISession.GetSession() method, it creates another session
> sharing the transaction AND cache.
>
> Probably it should be called ISession.GetStatlessSession()
>
> If you would use the session factory, you would have to write
> sessionfactory.OpenStatelessSession(oldsession.Connection)
> what's really bad and shouldn't be recommended.
>
> On 27 Nov., 12:25, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> > 2008/11/27 Stefan Steinegger <[EMAIL PROTECTED]>
> >
> >
> >
> > > What about a practical syntax like ISession.Stateless.CreateCriteria
> > > (...)?
> >
> > mmmm... I don't like it.The SessionFactory is the factory of session and
> a
> > stateFull session can't be transformed in a stateless
> > ISession.Stateless is ambiguous
> > --
> > Fabio Maulo
> >
>


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