Java 类org.hibernate.envers.RevisionTimestamp 实例源码

项目:spring-envers-audit    文件:DefaultRevisionAwareJpaRepository.java   
private RevisionMetadata<?> getRevisionMetadata(Object object) {
    if (object instanceof DefaultRevisionEntity) {
        return new DefaultRevisionMetadata((RevisionInfoEntity) object);
    } else {
        return new AnnotationRevisionMetadata<N>(object, RevisionNumber.class, RevisionTimestamp.class);
    }
}