I have just updated to Hibernate 4.0 and am seeing the warning message :
HHH000387: ResultSet's statement was not registered
in my log files. What does this mean, and should I be worried?
I would not worry too much. In any case it looks like it is not in API's users hands to avoid this message. Logging is done in the org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl. According documentation:
The main function of a JdbcResourceRegistry is to make sure resources get cleaned up.
Short look to the code tells, that such a message is logged in two situations: