Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Original pull request spring-projects#3576
  • Loading branch information
schauder committed Aug 19, 2024
1 parent a8ef74f commit d82c6b1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
* @author Niklas Loechte
* @author Donghun Shin
* @author Greg Turnquist
* @author Aref Behboodi
*/
@Transactional(readOnly = true)
public class EnversRevisionRepositoryImpl<T, ID, N extends Number & Comparable<N>>
Expand All @@ -76,9 +77,9 @@ public class EnversRevisionRepositoryImpl<T, ID, N extends Number & Comparable<N
* Creates a new {@link EnversRevisionRepositoryImpl} using the given {@link JpaEntityInformation},
* {@link RevisionEntityInformation} and {@link EntityManager}.
*
* @param entityInformation must not be {@literal null}.
* @param entityInformation must not be {@literal null}.
* @param revisionEntityInformation must not be {@literal null}.
* @param entityManager must not be {@literal null}.
* @param entityManager must not be {@literal null}.
*/
public EnversRevisionRepositoryImpl(JpaEntityInformation<T, ?> entityInformation,
RevisionEntityInformation revisionEntityInformation, EntityManager entityManager) {
Expand Down Expand Up @@ -238,7 +239,7 @@ RevisionMetadata<?> createRevisionMetadata() {
return metadata instanceof DefaultRevisionEntity defaultRevisionEntity //
? new DefaultRevisionMetadata(defaultRevisionEntity, revisionType) //
: new AnnotationRevisionMetadata<>(Hibernate.unproxy(metadata), RevisionNumber.class, RevisionTimestamp.class,
revisionType);
revisionType);
}

private static RevisionMetadata.RevisionType convertRevisionType(RevisionType datum) {
Expand Down

0 comments on commit d82c6b1

Please sign in to comment.