You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -77,7 +79,7 @@ In order to actually use Spring Data Envers make one or more repositories into {
77
79
====
78
80
[source,java]
79
81
----
80
-
public interface PersonRepository
82
+
interface PersonRepository
81
83
extends CrudRepository<Person, Long>,
82
84
RevisionRepository<Person, Long, Long> // <1>
83
85
{}
@@ -92,7 +94,7 @@ The entity for that repository must be an entity with Envers auditing enabled, i
92
94
----
93
95
@Entity
94
96
@Audited
95
-
public class Person {
97
+
class Person {
96
98
97
99
@Id @GeneratedValue
98
100
Long id;
@@ -111,7 +113,7 @@ You may now use the methods from `RevisionRepository` to query the revisions of
111
113
----
112
114
@ExtendWith(SpringExtension.class)
113
115
@Import(EnversDemoConfiguration.class) // <1>
114
-
public class EnversIntegrationTests {
116
+
class EnversIntegrationTests {
115
117
116
118
final PersonRepository repository;
117
119
final TransactionTemplate tx;
@@ -181,15 +183,15 @@ public class EnversIntegrationTests {
181
183
}
182
184
}
183
185
----
184
-
<1> This references the application context configuration presented above
186
+
<1> This references the application context configuration presented above.
185
187
====
186
188
187
189
[[envers.resources]]
188
190
== Further Resources
189
191
190
192
There is a https://github.com/spring-projects/spring-data-examples[Spring Data Envers example in the Spring Data Examples repository] that you can download and play around with to get a feel for how the library works.
191
193
192
-
You should also check out the https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/history/RevisionRepository.html[Javadoc for `RevisionRepository`] and related classes.
194
+
You should also check out the {spring-data-commons-javadoc-base}/org/springframework/data/repository/history/RevisionRepository.html[Javadoc for `RevisionRepository`] and related classes.
193
195
194
196
Questions are best asked at https://stackoverflow.com/questions/tagged/spring-data-envers[Stackoverflow using the `spring-data-envers` tag].
0 commit comments