Envers: Allow to extend the default EnversRevisionRepositoryImpl #3252
Labels
status: pending-design-work
Needs design work before any code can be developed
type: enhancement
A general enhancement
Recently in my job I had to expand the functionality of the RevisionRepository and I thought that could be great if this posibility is added to the Spring Data project.
To achieve this, I added the following method to the EnversRevisionRepositoryFactoryBean, treating it as if we were modifying the revision entity:
This ensures the default behavior when the new parameter is null:
Additionally, to maintain consistency with the return types of the original repository implementation, I changed the visibility of these methods and classes to protected:
Feel free to provide comments or advice in case I've attempted to reinvent the wheel or if there's an easier way to achieve this exact functionality
The text was updated successfully, but these errors were encountered: