Re: [hibernate-dev] Session opening

2011-04-06 Thread Max Rydahl Andersen
>>> Like I said, I do not think that is enough as I think that if you get the >>> connection, you also need the "transaction context" holding that connection. >>> "transacvtion context" here is the TransactionCoordinator. >>> >>> session.sessionWithOptions().transactionContext().openSession() >>

Re: [hibernate-dev] Session opening

2011-04-05 Thread Steve Ebersole
On 04/05/2011 11:23 AM, Max Rydahl Andersen wrote: >> Like I said, I do not think that is enough as I think that if you get the >> connection, you also need the "transaction context" holding that connection. >> "transacvtion context" here is the TransactionCoordinator. >> >> session.sessionWithOpti

Re: [hibernate-dev] Session opening

2011-04-05 Thread Max Rydahl Andersen
> session.sessionWithOptions().connection().openSession() > > says *exactly* what you just said: "open a session using the same connection > as an existing session". Yes - sorry I didn't get the full thread when writing my initial question ;) > Like I said, I do not think that is enough as I t

Re: [hibernate-dev] Session opening

2011-04-04 Thread Max Rydahl Andersen
Sorry - didn't get the mail thread in proper order (damn VPN!) >From reading the whole thread I guess the answer is: session.sessionWithOptions().connection().openSession() or even session.sessionWithOptions().transactionContext().openSession() I'm still a bit fuzzy about where the lifecycle bo

Re: [hibernate-dev] Session opening

2011-04-04 Thread Steve Ebersole
session.sessionWithOptions().connection().openSession() says *exactly* what you just said: "open a session using the same connection as an existing session". Like I said, I do not think that is enough as I think that if you get the connection, you also need the "transaction context" holding tha

Re: [hibernate-dev] Session opening

2011-04-04 Thread Max Rydahl Andersen
> RE: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2860 > > This dealt with cleaning up all the overloaded openSession methods from > SessionFactory and SessionFactoryImplementor. > > The new main method for obtaining a Session is SessionFactory.withOptions() > which returns a

Re: [hibernate-dev] Session opening

2011-04-01 Thread Shawn Clowater
ernate-dev-boun...@lists.jboss.org] On Behalf Of Steve Ebersole Sent: Friday, April 01, 2011 11:06 AM To: hibernate-dev@lists.jboss.org Subject: Re: [hibernate-dev] Session opening Actually, i wonder now if allowing just the connection to be shared makes any sense. Maybe it needs to always be

Re: [hibernate-dev] Session opening

2011-04-01 Thread Steve Ebersole
will still be possible. > > > > > > Shawn Clowater > > > > -Original Message- > > From: hibernate-dev-boun...@lists.jboss.org > > [mailto:hibernate-dev-boun...@lists.jboss.org] On Behalf Of Steve > > Ebersole > > Sent: Friday, April 01

Re: [hibernate-dev] Session opening

2011-04-01 Thread Steve Ebersole
bunch of additional data loaded into and also prevents data from being > >> locked into it with the temporary filter view of the data. I just > >> wanted to ensure that this will still be possible. > >> > >> > >> Shawn Clowater > >&

Re: [hibernate-dev] Session opening

2011-04-01 Thread Sanne Grinovero
-Original Message- >> From: hibernate-dev-boun...@lists.jboss.org >> [mailto:hibernate-dev-boun...@lists.jboss.org] On Behalf Of Steve >> Ebersole >> Sent: Friday, April 01, 2011 7:25 AM >> To: hibernate-dev@lists.jboss.org >> Subject: [hibernate-dev] Se

Re: [hibernate-dev] Session opening

2011-04-01 Thread Steve Ebersole
t; -Original Message- > From: hibernate-dev-boun...@lists.jboss.org > [mailto:hibernate-dev-boun...@lists.jboss.org] On Behalf Of Steve > Ebersole > Sent: Friday, April 01, 2011 7:25 AM > To: hibernate-dev@lists.jboss.org > Subject: [hibernate-dev] Session opening

Re: [hibernate-dev] Session opening

2011-04-01 Thread Shawn Clowater
anted to ensure that this will still be possible. Shawn Clowater -Original Message- From: hibernate-dev-boun...@lists.jboss.org [mailto:hibernate-dev-boun...@lists.jboss.org] On Behalf Of Steve Ebersole Sent: Friday, April 01, 2011 7:25 AM To: hibernate-dev@lists.jboss.org Subject: [hi

[hibernate-dev] Session opening

2011-04-01 Thread Steve Ebersole
RE: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2860 This dealt with cleaning up all the overloaded openSession methods from SessionFactory and SessionFactoryImplementor. The new main method for obtaining a Session is SessionFactory.withOptions() which returns a org.hibernate.