In 4.2 and 4.3, it was possible to add a ConnectionObserver
using
org.hibernate.engine.jdbc.spi.LogicalConnectionImplementor#addObserver(ConnectionObserver
observer).
Starting in 5.0, LogicalConnectionImplementor was moved
to org.hibernate.resource.jdbc.spi, and it's no longer possible to add a
C
While refactoring some related optimisations, I noticed there's
currently no way to register a custom ConnectionObserver.
There seems to be only one implementation, which is registered by default:
-
org.hibernate.internal.ConnectionObserverStatsBridge#ConnectionObserverStatsBridge
Some question