generate « Stored Procedure « JPA Q&A





2. How to control the lifetime of generated stored procedures ?    forum.hibernate.org

I can't speak to the implementation of that particular driver but think of how JDBC works. You have a Connection, and you use that Connection to prepare a statement. The PS is tied to the Connection and can be reused over and over again. When you pool Connections, you can quite easily pool/cache the PreparedStatements along with it and keep using ...