Skip to content
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

Hibernate Envers Extension #8769

Closed
ghost opened this issue Apr 22, 2020 · 8 comments · Fixed by #10574
Closed

Hibernate Envers Extension #8769

ghost opened this issue Apr 22, 2020 · 8 comments · Fixed by #10574
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Apr 22, 2020

Hey Quarkus Team, we are trying to get Hibernate Envers running on Quarkus. So far so good. In Hibernate Envers you can configure the Audit Strategy. We want to use the ValidityStrategy, therefore the following Configuration must be set in a persistence.xml.
(org.hibernate.envers.audit_strategy=org.hibernate.envers.strategy.ValidityAuditStrategy)
We dont have a persistence.xml and dont want to maintain one. Is there another way to set this Property??
Thanks in advance.

Sanne Grinovero17:33
hi @kai Suchomel , that's a good question, I'm afraid we don't have it now and it's not trivial to add as there isn't an "Envers extension". But one is planned :)

Please open an issue, so that we can add such configuration to the Envers extension when we make it?

@quarkusbot quarkusbot added the area/hibernate-orm Hibernate ORM label Apr 22, 2020
@quarkusbot
Copy link

/cc @gsmet @Sanne

@quarkusbot quarkusbot added the area/persistence OBSOLETE, DO NOT USE label Apr 22, 2020
@Sanne
Copy link
Member

Sanne commented Apr 23, 2020

thanks @KaiHawai !

@Sanne Sanne self-assigned this Apr 23, 2020
@j-be
Copy link
Contributor

j-be commented Apr 28, 2020

I'm also affected - in my case its org.hibernate.envers.store_data_at_delete.

@KaiHawai did you find a workaround not involving persistence.xml?

@ghost
Copy link
Author

ghost commented Apr 28, 2020

Hey, no so far we use hibernate envers as it is...

@Postremus
Copy link
Member

@KaiHawai Out of curiosity, can you configure hibernate envers using a "hibernate.properties" file?

@ghost
Copy link
Author

ghost commented Apr 28, 2020

@KaiHawai Out of curiosity, can you configure hibernate envers using a "hibernate.properties" file?

Goog question, not tried so far.

@Sanne
Copy link
Member

Sanne commented Apr 28, 2020

@KaiHawai Out of curiosity, can you configure hibernate envers using a "hibernate.properties" file?

No, sorry I've recently disabled the support for hibernate.properties. It might have worked in the first Quarkus versions but we're working towards centralizing all configuration.

@Sanne
Copy link
Member

Sanne commented Jul 7, 2020

Finally working on this now. Related: #3894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants