I have 2 questions about the Hibernate API
1. what is the difference between Session.isOpen() and Session.isConnected()?
2. Suppose I''m using JDBCConnection for Hibernate, when the connection is closed (by timeout, server shut down, or killed by others etc.), what should Session.isOpen() and Session.isConnected() return? I have an experience that if the connection is closed not through Hibernate, both two methods still return true, and I expect it shall return false.
I'm using Hibernate 2.1.2
Thank!
|