UserRepository

@Repository
interface UserRepository : JpaRepository<User, Long>

사용자 레포지토리

Functions

Link copied to clipboard
abstract fun count(): Long
abstract fun <S : User> count(example: Example<S>): Long
Link copied to clipboard
abstract fun delete(entity: User)
Link copied to clipboard
abstract fun deleteAll()
abstract fun deleteAll(entities: MutableIterable<User>)
Link copied to clipboard
abstract fun deleteAllById(ids: MutableIterable<Long>)
Link copied to clipboard
Link copied to clipboard
abstract fun deleteAllInBatch()
abstract fun deleteAllInBatch(entities: MutableIterable<User>)
Link copied to clipboard
abstract fun deleteByEmail(email: String)

사용자 삭제

Link copied to clipboard
abstract fun deleteById(id: Long)
Link copied to clipboard
open fun deleteInBatch(entities: MutableIterable<User>)
Link copied to clipboard
abstract fun <S : User> exists(example: Example<S>): Boolean
Link copied to clipboard
abstract fun existsByEmail(email: String): Boolean

이메일로 사용자 존재 여부 조회

Link copied to clipboard
abstract fun existsById(id: Long): Boolean
Link copied to clipboard
abstract override fun <S : User> findAll(example: Example<S>): MutableList<S>
abstract override fun <S : User> findAll(example: Example<S>, sort: Sort): MutableList<S>
abstract override fun findAll(): MutableList<User>
abstract override fun findAll(sort: Sort): MutableList<User>
abstract fun findAll(pageable: Pageable): Page<User>
abstract fun <S : User> findAll(example: Example<S>, pageable: Pageable): Page<S>
Link copied to clipboard
abstract override fun findAllById(ids: MutableIterable<Long>): MutableList<User>
Link copied to clipboard
abstract fun <S : User, R : Any> findBy(example: Example<S>, queryFunction: Function<FluentQuery.FetchableFluentQuery<S>, R>): R
Link copied to clipboard
abstract fun findByEmail(email: String): User?

이메일로 사용자 조회

Link copied to clipboard
abstract fun findById(id: Long): Optional<User>
Link copied to clipboard
abstract fun <S : User> findOne(example: Example<S>): Optional<S>
Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun getById(id: Long): User
Link copied to clipboard
abstract fun getOne(id: Long): User
Link copied to clipboard
abstract fun getReferenceById(id: Long): User
Link copied to clipboard
abstract fun <S : User> save(entity: S): S
Link copied to clipboard
abstract override fun <S : User> saveAll(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
abstract fun <S : User> saveAllAndFlush(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
abstract fun <S : User> saveAndFlush(entity: S): S