Re: [hibernate-dev] ORM5 : Reusing the Configuration instance

2015-03-18 Thread Steve Ebersole
Probably we should re-initialize the service registries and builders held within Configuration after the SF is built during Configuration#buildSessionFactory. Although, arguably what you are trying falls under the concept of sharing service registries, and from that perspective is better handled t

Re: [hibernate-dev] ORM5 : Reusing the Configuration instance

2015-03-17 Thread Hardy Ferentschik
Hi, On Mon, Mar 16, 2015 at 09:21:33PM +, Sanne Grinovero wrote: > > given that the SessionFactory gets closed after each test, I think it would > > only be fair to also rebuild the Configuration on each test set-up. > > What is the reason for keeping it around anyways? Do the tests run > > co

Re: [hibernate-dev] ORM5 : Reusing the Configuration instance

2015-03-16 Thread Sanne Grinovero
On 16 March 2015 at 20:57, Hardy Ferentschik wrote: > Hi, > > given that the SessionFactory gets closed after each test, I think it would > only be fair to also rebuild the Configuration on each test set-up. > What is the reason for keeping it around anyways? Do the tests run > considerably slower

Re: [hibernate-dev] ORM5 : Reusing the Configuration instance

2015-03-16 Thread Hardy Ferentschik
Hi, given that the SessionFactory gets closed after each test, I think it would only be fair to also rebuild the Configuration on each test set-up. What is the reason for keeping it around anyways? Do the tests run considerably slower when re-building the Configuration for each test? --Hardy On