Interface BookRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Book,​String>, org.springframework.data.repository.Repository<Book,​String>

    @Repository
    public interface BookRepository
    extends org.springframework.data.repository.CrudRepository<Book,​String>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Book getByIsbn​(String isbn)  
      <S extends Book>
      S
      save​(S entity)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, saveAll
    • Method Detail

      • getByIsbn

        @Cacheable("books")
        Book getByIsbn​(String isbn)
      • save

        @CachePut(value="books",
                  key="#result.isbn")
        <S extends Book> S save​(S entity)
        Specified by:
        save in interface org.springframework.data.repository.CrudRepository<Book,​String>