接口 JamesUserRepository
-
- 所有超级接口:
org.springframework.data.repository.CrudRepository<JamesUser,String>,org.springframework.data.jpa.repository.JpaRepository<JamesUser,String>,org.springframework.data.jpa.repository.JpaSpecificationExecutor<JamesUser>,org.springframework.data.repository.PagingAndSortingRepository<JamesUser,String>,org.springframework.data.repository.query.QueryByExampleExecutor<JamesUser>,org.springframework.data.repository.Repository<JamesUser,String>
@Repository public interface JamesUserRepository extends org.springframework.data.jpa.repository.JpaRepository<JamesUser,String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<JamesUser>
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voiddeleteByPersonId(String personId)Optional<JamesUser>findByEmailAddress(String emailAddress)Optional<JamesUser>findByPersonId(String personId)StringfindEmailAddressByPersonId(String personId)List<String>findEmailAddressByPersonIds(List<String> ids)-
从接口继承的方法 org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
-
从接口继承的方法 org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
-
-
-
-
方法详细资料
-
findEmailAddressByPersonId
@Query("select emailAddress from JamesUser where personId=?1") String findEmailAddressByPersonId(String personId)
-
findEmailAddressByPersonIds
@Query("select emailAddress from JamesUser where personId in (?1)") List<String> findEmailAddressByPersonIds(List<String> ids)
-
deleteByPersonId
@Transactional(readOnly=false) @Modifying void deleteByPersonId(String personId)
-
-