lazy « Connection « JPA Q&A





1. When Hibernate garbage collect and close a lazy connection ?    forum.hibernate.org

I often see the log message "unclosed connection, forgot to call close() on your session?" I think it may be a message that Hibernate closed connection whiche is lazy or forgotten to be closed. I cannot discover a information about this at Web. I want to know whether taht is true or not and When Hibernate starts this job ????.

2. Releasing connection after initializing lazy collection    forum.hibernate.org

Hibernate version: 3.2 and 3.3 Hi everyone. Here is my use case: I have a method with multiple hibernate reads (mostly getById type of reads). Execution of this method is happening outside of the transaction or in other words transaction was not started prior to the series of the "getById" calls. For all getById calls I can see that connection is ...