-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Auto configuration for Spring Data Envers #21370
Comments
@mp911de Hi Mark, what are your thoughts on this? Is it a sensible thing to auto-configure? |
Adding also @schauder to the conversation. Envers repositories assume that the entity is audited and allows revision retrieval. From what I’ve seen we cannot expect that this assumption holds true for each application. Instead, only some entities are audited. Since I’m not exactly sure on the impact on non-audited entities, I’d like Jens to chime in. |
Each repository would still need to extend from If I am not mistaken, a repository extending My idea is that when |
Pro auto configuration:
Contra:
I'm not sure what the criteria are for inclusion of auto configuration, but my gut reaction is: "Yeah, why not" |
Thanks, @schauder and @mp911de. @scordio It sounds like it makes sense to offer some auto-configuration for this. Are you still interested in contributing a pull request? If so, I think it could be implemented by making some changes to |
@wilkinsona yes I am, thanks for the feedback. I started already hacking around and I was thinking to conditionally register another registrar (extended from I will open a draft PR for some brainstorming and make sure I am going in the right direction. |
Excellent. Thank you. Please let us know if you have any questions. |
How's it going, @scordio? Please do let us know if you need anything from us. |
Hi @wilkinsona, thanks for checking! Unfortunately, in the last weeks I had very limited time to spend on this but I did small advancements. During the weekend I will put what I have in a good shape and submit the draft PR. |
Done in fbbfe6a. |
When using Spring Data Envers with Spring Boot, the
EnversRevisionRepositoryFactoryBean
has to be configured via@EnableJpaRepositories
:Maybe an auto configuration could take care of it. Would it make sense?
In case it does, I would be happy to prepare a pull request.
The text was updated successfully, but these errors were encountered: