# spring-data-envers **Repository Path**: mirrors_andyglick/spring-data-envers ## Basic Information - **Project Name**: spring-data-envers - **Description**: Envers extension of the Spring Data JPA module - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spring Data Envers # This project is an extension of the [Spring Data JPA](http://github.com/SpringSource/spring-data-jpa) project to allow access to entity revisions managed by Hibernate Envers. The sources mostly originate from a contribution of Philipp Hügelmeyer [@hygl](https://github.com/hygl). The core feature of the module consists of an implementation of the `RevisionRepository` of Spring Data Commons. ```java public interface RevisionRepository> { Revision findLastChangeRevision(ID id); Revisions findRevisions(ID id); Page> findRevisions(ID id, Pageable pageable); } ``` You can pull in this functionality to your repositories by simply additionally extending the interface just mentioned: ```java interface PersonRepository extends RevisionRepository, CrudRepository { // Your query methods go here } ``` To successfully activate the Spring Data Envers repository factory use the Spring Data JPA repositories namespace element's `factory-class` attribute: ```xml ``` # Contributing to the project If you're an Eclipse user make sure you activate automatic application of the formatter (located at `etc/eclipse-formatter.xml`) and activate automatic formatting and organizing imports on save.