Skip to content

Disable hibernate envers listeners #43541

Answered by yrodiere
fabrii asked this question in Q&A
Sep 26, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

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 to true 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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yrodiere
Comment options

@fabrii
Comment options

Answer selected by fabrii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/hibernate-orm Hibernate ORM
2 participants