Class ReflectionRevisionEntityInformation
java.lang.Object
org.springframework.data.envers.repository.support.ReflectionRevisionEntityInformation
- All Implemented Interfaces:
RevisionEntityInformation
public class ReflectionRevisionEntityInformation
extends Object
implements RevisionEntityInformation
RevisionEntityInformation
that uses reflection to inspect a property annotated with RevisionNumber
to
find out about the revision number type.- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorDescriptionReflectionRevisionEntityInformation
(Class<?> revisionEntityClass) Creates a newReflectionRevisionEntityInformation
inspecting the given revision entity class. -
Method Summary
-
Constructor Details
-
ReflectionRevisionEntityInformation
Creates a newReflectionRevisionEntityInformation
inspecting the given revision entity class.- Parameters:
revisionEntityClass
- must not be null.
-
-
Method Details
-
isDefaultRevisionEntity
public boolean isDefaultRevisionEntity()- Specified by:
isDefaultRevisionEntity
in interfaceRevisionEntityInformation
-
getRevisionEntityClass
- Specified by:
getRevisionEntityClass
in interfaceRevisionEntityInformation
-
getRevisionNumberType
- Specified by:
getRevisionNumberType
in interfaceRevisionEntityInformation
-