接口 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>
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void deleteByPersonId​(String personId)  
      Optional<JamesUser> findByEmailAddress​(String emailAddress)  
      Optional<JamesUser> findByPersonId​(String personId)  
      String findEmailAddressByPersonId​(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
      • 从接口继承的方法 org.springframework.data.jpa.repository.JpaSpecificationExecutor

        count, exists, findAll, findAll, findAll, findOne
      • 从接口继承的方法 org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • 从接口继承的方法 org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findBy, findOne
    • 方法详细资料

      • 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)