-
Hello! We are trying to disable Envers listeners but keep using the library for retrieving audit data. I tried to register a new custom EnversIntegrator, by declaring "org.hibernate.integrator.spi.Integrator" inside META-INF/services. This custom integrator is being invoked, but it is not disabling the listeners. I guess the only option would be to set "hibernate.envers.autoRegisterListeners" in false? We would need to add this configuration property to Quarkus, right? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, Do I understand correctly that you want to use Envers in read-only mode, preventing it from adding audit information for changes you make to the database? That seems dangerous, but if you know what you're doing, then yes, setting You can try adding this in quarkus.hibernate-orm.unsupported-properties."hibernate.envers.autoRegisterListeners" = false This is, as the name implies, unsupported (untested). If you want this supported in Quarkus, feel free to open a feature request, and ideally a PR. |
Beta Was this translation helpful? Give feedback.
Hello,
Do I understand correctly that you want to use Envers in read-only mode, preventing it from adding audit information for changes you make to the database?
That seems dangerous, but if you know what you're doing, then yes, setting
hibernate.envers.autoRegisterListeners
totrue
is the way.You can try adding this in
application.properties
:quarkus.hibernate-orm.unsupported-properties."hibernate.envers.autoRegisterListeners" = false
This is, as the name implies, unsupported (untested). If you want this supported in Quarkus, feel free to open a feature request, and ideally a PR.