then
keep a map of SessionFactory -> Session.
-Original Message-
From: Max Andersen
Sent: Monday, October 03, 2005 9:21 AM
To: Steve Ebersole; Hibernate development
Subject: Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency
On Mon, 03 Oct 2005 16:15:01 +0200, Steve Ebers
Steve Ebersole wrote:
Ah yes! Forgot that it already knows about the SF to which it is bound
via its constructor. So really the only changes needed here is to the
"static portion" of ThreadLocalSessionContext.
Well, it's a trivial implementation. We should either include it or at
the very lea
y ?
/max
-Original Message-
From: Max Andersen
Sent: Monday, October 03, 2005 9:21 AM
To: Steve Ebersole; Hibernate development
Subject: Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency
On Mon, 03 Oct 2005 16:15:01 +0200, Steve Ebersole
<[EMAIL PROTECTED]> wrote:
development
Subject: Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency
Steve Ebersole wrote:
Here's another concern with the current impl for
ThreadLocalSessionContext: the static accessors. Basically the way
this is setup right now, users will nt be able to use this
simultaneously
L PROTECTED] On Behalf Of
Christian Bauer
Sent: Monday, October 03, 2005 9:25 AM
To: Hibernate development
Subject: Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency
Steve Ebersole wrote:
> Here's another concern with the current impl for
> ThreadLocalSessionContext: the
Steve Ebersole wrote:
Here's another concern with the current impl for
ThreadLocalSessionContext: the static accessors. Basically the way
this is setup right now, users will nt be able to use this
simultaneously for multiple session-factories...
Well, I'd say that this is one of the "implemen
Behalf Of Max
Rydahl Andersen
Sent: Saturday, October 01, 2005 10:32 AM
To: Hibernate development
Subject: [Hibernate] ThreadLocalSessionContext javadoc inconsistency
hi,
javadoc for ThreadLocalSessionContext state:
"it unsafe for this impl to actually generate Session instances;
EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Saturday, October 01, 2005 10:32 AM
To: Hibernate development
Subject: [Hibernate] ThreadLocalSessionContext javadoc inconsistency
hi,
javadoc for ThreadLocalSessionContext state:
"it unsafe for this impl to actually generate Session instance
hi,
javadoc for ThreadLocalSessionContext state:
"it unsafe for this impl to actually generate Session instances; thus it
does not"
but at currentSession it does the following:
if (current == null) {
log.debug("Current thread doesn't have a session, o