Hi (I am new to Hibernate),
It appears that Hibernate generates static SQL at startup, but is static SQL also used when Hibernate is used by a session bean? If so, how?
I thought that within a session bean, one gets a connection from a connection pool and then commits are executed on that connection (and possibly others) when the session bean's method (and possibly caller methods) completes, so it would be impossible to assume that a statically prepared JDBC statement is bound to any retrieved connection object. Am I missing something big here, or is Hibernate not using this model?
Sorry for the broad question, but I would be most appreciative for any explanation that anyone might share.
Thanks!
Stuart
|