Skip to content

Commit

Permalink
feat: update cursor
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Mar 30, 2024
1 parent 42959e9 commit 3abaaad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @param <T> the type of the entity managed by this repository
* @param <K> the type of the entity's primary key
*/
public interface NoSQLRepository<T, K> extends BasicRepository<T, K>, CrudRepository<T, K>{
public interface NoSQLRepository<T, K> extends BasicRepository<T, K>, CrudRepository<T, K> {

/**
* Deletes all persistent entities of the primary entity type that are managed by the repository.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @param <T> The entity type managed by this repository.
* @param <K> The type of the entity's primary key.
*/
public abstract class AbstractRepository<T, K> implements NoSQLRepository<T, K>, CrudRepository<T, K> {
public abstract class AbstractRepository<T, K> implements NoSQLRepository<T, K> {

/**
* Retrieves the template associated with this repository.
Expand Down Expand Up @@ -201,7 +201,7 @@ public long countBy() {
}

@Override
public Page<T> findAll(PageRequest pageRequest) {
public Page<T> findAll(PageRequest<T> pageRequest) {
throw new UnsupportedOperationException(String.format(getErrorMessage(), "findAll"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public long countBy() {
}


@SuppressWarnings("unchecked")
@Override
public Page<T> findAll(PageRequest pageRequest) {
Objects.requireNonNull(pageRequest, "pageRequest is required");
Expand Down

0 comments on commit 3abaaad

Please sign in to comment.