-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for STATEMENT_INSPECTOR in Hibernate ORM #27403
Comments
Thanks for raising this! I'm in favour of adding such a feature, but I wonder if we could omit the configuration property: especially as it's a managed bean, we could wire it to Hibernate during bootstrap using Similarly to how we do Interceptors: What would you think of it? I haven't tried it though, it would need a POC first to see if I'm missing something. |
using |
For anyone ending up here and not wanting to contribute the feature, there is a workaround that I just used in integration tests (#30392): rely on quarkus.hibernate-orm.unsupported-properties."hibernate.session_factory.statement_inspector" = com.acme.MyInspector |
Description
Add support to configure a
org.hibernate.resource.jdbc.spi.StatementInspector
which is defined in
org.hibernate.cfg.AvailableSettings.STATEMENT_INSPECTOR
So that it could be added in
application.properties
as:quarkus.hibernate-orm.session_factory.statement_inspector=org.example.MyStatementInspector
or
quarkus.hibernate-orm.other.session_factory.statement_inspector=org.example.MyStatementInspector
The stament inspector instantiated should be a managed bean.
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: