Interface PermissionsRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Permissions,java.util.UUID>,org.springframework.data.jpa.repository.JpaRepository<Permissions,java.util.UUID>,org.springframework.data.repository.PagingAndSortingRepository<Permissions,java.util.UUID>,org.springframework.data.repository.query.QueryByExampleExecutor<Permissions>,org.springframework.data.repository.Repository<Permissions,java.util.UUID>
@Repository public interface PermissionsRepository extends org.springframework.data.jpa.repository.JpaRepository<Permissions,java.util.UUID>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<Permissions>findByName(java.lang.String name)Find thePermissionsobject by the given name.java.util.Optional<Permissions>findByShortcut(java.lang.String shortcut)Find thePermissionsobject by the given shortcut.-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
findByName
java.util.Optional<Permissions> findByName(java.lang.String name)
Find thePermissionsobject by the given name.- Parameters:
name- the name- Returns:
- an optional with the entry if found
-
findByShortcut
java.util.Optional<Permissions> findByShortcut(java.lang.String shortcut)
Find thePermissionsobject by the given shortcut.- Parameters:
shortcut- the shortcut- Returns:
- an optional with the entry if found
-
-