0

I am aware that the try with resources feature is available from Java 7 onwards, I was hoping the later versions of dropwizard hibernate would provide a Sessions object that implement the autocloseable interface.

I wasnt able to see that in the javadocs for any version of dropwizard. Is there a way to figure out the version if it does spport?

user_mda
  • 18,148
  • 27
  • 82
  • 145

1 Answers1

0

I believe this should be fine with DW 1.0.0 and upwards.

Hibernate Session in Version 5.1.0 is Autocloseable. According to the release notes, this made it in in 1.0.0.

http://www.dropwizard.io/1.0.5/docs/about/release-notes.html

Cheers,

Artur

pandaadb
  • 6,306
  • 2
  • 22
  • 41