What does it mean? Because, my code is as follow:
Code:
Session session = null;
Transaction tx = null;
try
{
session=DbHandler.getInstance.getSession(); // returns back a session
tx = session.beginTransaction();
// get objects from database ...
// change objects ...
// update objects ...
tx.commit();
}
catch(Exception e)
{
// exception handling
}
finally
{
session.close();
}
What have I to do to close connection before finalizing session? I thought, wen I close the session, the connection will be closed too. It's actually only a warning, but I'm neverthless confused!
Tanks for any help.