Package balu.pizza.webapp.repositiries
Interface PersonRepository
- 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 PersonRepository
extends org.springframework.data.jpa.repository.JpaRepository<Person,Integer>
User Repository
-
Method Summary
Modifier and TypeMethodDescriptionfindByEmail
(String email) Search for a user by emailfindByUsername
(String username) Search for a user by nameMethods 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
Search for a user by name- Parameters:
username
- Username for searching- Returns:
- An object that may contain a user or be empty
-
findByEmail
Search for a user by email- Parameters:
email
- email for searching- Returns:
- An object that may contain a user or be empty
-