I have a hibernate session create with standard options.
Execute multiple select and inserts with prepareStatement.
Next is executed :
And in next try execute a new query with prepareStatement that give the error:
java.sql.SQLException: You can't operate on a closed Connection!!!
I don't close the session after commit.
It's work equal if I user HQL.
If I use Hibernate 5.1.10 work fine, and if I use 5.2.10 and remove hibernate-c3p0-5.2.10.Final.jar work fine too.
With all jar of 5.2.10 get the error.