接口 JamesAddressBookRepository

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      List<JamesAddressBook> findByPersonIdAndEmailAddressLikeOrNameLikeOrderByNameAsc​(String personId, String emailAddress, String name)  
      List<JamesAddressBook> findByPersonIdOrderByNameAsc​(String personId)  
      • 从接口继承的方法 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
    • 方法详细资料

      • findByPersonIdAndEmailAddressLikeOrNameLikeOrderByNameAsc

        @Query("from JamesAddressBook a where a.personId=?1 and (a.emailAddress like  %?2% or a.name like %?3%) order by a.name ASC")
        List<JamesAddressBook> findByPersonIdAndEmailAddressLikeOrNameLikeOrderByNameAsc​(String personId,
                                                                                         String emailAddress,
                                                                                         String name)