Package restapi.crud

Interface ContactRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ContactEntity,Long>, org.springframework.data.jpa.repository.JpaRepository<ContactEntity,Long>, org.springframework.data.repository.PagingAndSortingRepository<ContactEntity,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ContactEntity>, org.springframework.data.repository.Repository<ContactEntity,Long>

@Repository public interface ContactRepository extends org.springframework.data.jpa.repository.JpaRepository<ContactEntity,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByUserId1OrUserId2(long userId1, long userId2)
     
    findByUserId1AndUserId2(long userId1, long userId2)
     

    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

    • findAllByUserId1OrUserId2

      List<ContactEntity> findAllByUserId1OrUserId2(long userId1, long userId2)
    • findByUserId1AndUserId2

      Optional<ContactEntity> findByUserId1AndUserId2(long userId1, long userId2)