Package restapi.crud
Interface UserRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<UserEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<UserEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<UserEntity>
,org.springframework.data.repository.Repository<UserEntity,
Long>
@Repository
public interface UserRepository
extends org.springframework.data.jpa.repository.JpaRepository<UserEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByEmail
(String email) boolean
existsByPhone
(String phone) boolean
existsByUsername
(String username) findByEmail
(String email) findByPhone
(String phone) findByUsername
(String username) 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, 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, findOne
-
Method Details
-
findByUsername
-
findByEmail
-
findByPhone
-
existsByUsername
-
existsByEmail
-
existsByPhone
-