Interface UrlRepository

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

@Repository public interface UrlRepository extends org.springframework.data.repository.CrudRepository<Url,Long>
The UrlRepository is a repository for Url entities, that is, it is the abstraction for the database table for Urls
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    <S extends Url>
    S
    save(S entity)
     

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

    count, delete, deleteAll, deleteAll, deleteAllById, existsById, findAllById, findById, saveAll
  • Method Details

    • deleteById

      @PreAuthorize("hasRole(\'ADMIN\')") void deleteById(Long id)
      Specified by:
      deleteById in interface org.springframework.data.repository.CrudRepository<Url,Long>
    • findAll

      @PreAuthorize("hasRole(\'USER\')") List<Url> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<Url,Long>
    • save

      @PreAuthorize("hasRole(\'ADMIN\')") <S extends Url> S save(S entity)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<Url,Long>