Interface ActorRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Actor,Long>, org.springframework.data.repository.PagingAndSortingRepository<Actor,Long>, org.springframework.data.repository.Repository<Actor,Long>

public interface ActorRepository extends org.springframework.data.repository.PagingAndSortingRepository<Actor,Long>, org.springframework.data.repository.CrudRepository<Actor,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<Actor>
    findAll(org.springframework.data.domain.Pageable pageable, String firstName)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll, findAll
  • Method Details

    • findAll

      @Query("SELECT p FROM Actor p where :firstName is null or (p.firstName like %:firstName%)") org.springframework.data.domain.Page<Actor> findAll(org.springframework.data.domain.Pageable pageable, @Param("firstName") String firstName)