Re: [hibernate-dev] Handling connections properly during testing with Java 1.8

2016-06-16 Thread Steve Ebersole
I look forward to "ever [having] time" :) But I am fine with adding support for it and using them in new tests. Remember too that Session, etal are AutoCloseable now too. On Thu, Jun 16, 2016 at 10:25 AM Vlad Mihalcea wrote: > At first, we could add support for this

Re: [hibernate-dev] Handling connections properly during testing with Java 1.8

2016-06-16 Thread Vlad Mihalcea
At first, we could add support for this method and start applying it for new tests. If we ever have time to migrate old tests, we should consider changing old tests as well. Vlad On Thu, Jun 16, 2016 at 6:11 PM, Steve Ebersole wrote: > Not sure what you are asking

Re: [hibernate-dev] Handling connections properly during testing with Java 1.8

2016-06-16 Thread Steve Ebersole
Not sure what you are asking specifically. You mean a task to change each and every test in the Hibernate testsuite? On Thu, Jun 16, 2016 at 9:18 AM Vlad Mihalcea wrote: > Hi, > > Now that we moved to Java 1.8, would you like to add a task so that we > manage the

[hibernate-dev] Handling connections properly during testing with Java 1.8

2016-06-16 Thread Vlad Mihalcea
Hi, Now that we moved to Java 1.8, would you like to add a task so that we manage the Session/Transaction automatically using a test utility like the ones I added in the documentation tests: doInHibernate( this::sessionFactory, session -> { Person person = new Person(); person.id = 1L;