Interface PersonDetailRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Person,Integer>, org.springframework.data.jpa.repository.JpaRepository<Person,Integer>, org.springframework.data.repository.PagingAndSortingRepository<Person,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<Person>, org.springframework.data.repository.Repository<Person,Integer>

@Repository public interface PersonDetailRepository extends org.springframework.data.jpa.repository.JpaRepository<Person,Integer>
  • Method Summary

    Modifier and Type
    Method
    Description
    Search for a user by name

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

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

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByUsername

      Optional<Person> findByUsername(String username)
      Search for a user by name
      Parameters:
      username -
      Returns:
      An object that may contain a user or be empty