diff --git a/src/main/java/org/springframework/data/domain/Sort.java b/src/main/java/org/springframework/data/domain/Sort.java index 70d8eba88..dcb6cbb45 100644 --- a/src/main/java/org/springframework/data/domain/Sort.java +++ b/src/main/java/org/springframework/data/domain/Sort.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2014 the original author or authors. + * Copyright 2008-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -196,6 +196,26 @@ public class Sort implements Iterable findRevisions(ID id); /** - * Returns a {@link Page} of revisions for the entity with the given id. + * Returns a {@link Page} of revisions for the entity with the given id. Note, that it's not guaranteed that + * implementations have to support sorting by all properties. * * @param id must not be {@literal null}. * @param pageable + * @see RevisionSort * @return */ Page> findRevisions(ID id, Pageable pageable);