DATACMNS-785 - Added RevisionRepository.findRevision(ID, N).

This commit is contained in:
Oliver Gierke
2015-11-16 17:07:33 +01:00
parent 2564e0e8b1
commit db2a09192b

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2012 the original author or authors. * Copyright 2012-2015 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -56,4 +56,14 @@ public interface RevisionRepository<T, ID extends Serializable, N extends Number
* @return * @return
*/ */
Page<Revision<N, T>> findRevisions(ID id, Pageable pageable); Page<Revision<N, T>> findRevisions(ID id, Pageable pageable);
/**
* Returns the entity with the given ID in the given revision number.
*
* @param id must not be {@literal null}.
* @param revisionNumber must not be {@literal null}.
* @return the entity with the given ID in the given revision number.
* @since 1.12
*/
Revision<N, T> findRevision(ID id, N revisionNumber);
} }