Code:

@NoRepositoryBean
public interface AbstractRepository <M extends AbstractModel> extends MongoRepository<M, String> {
     Page<M> findAll(Pageable pageable);
     Page<M> findAllByIsActive(boolean isActive, Pageable pageable);
}

And are other warning in findAll parameter:

   Missing non-null annotation: inherited method from PagingAndSortingRepository<M,String> specifies this parameter as @NonNullJava(67109781)

whats wrong?

0

There are 0 best solutions below