RE: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Steve Ebersole
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

Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Christian Bauer
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

Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Max Rydahl Andersen
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:

Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Max Rydahl Andersen
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

RE: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Steve Ebersole
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

Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Christian Bauer
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

Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Max Rydahl Andersen
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;

RE: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-03 Thread Steve Ebersole
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

[Hibernate] ThreadLocalSessionContext javadoc inconsistency

2005-10-02 Thread Max Rydahl Andersen
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