Interface AddressRepository

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

@Repository public interface AddressRepository extends org.springframework.data.jpa.repository.JpaRepository<Address,String>
Repository for queries for Address.
  • Method Summary

    Modifier and Type
    Method
    Description
    Select registers by user id.

    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, getReferenceById, 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, findBy, findOne
  • Method Details

    • findbyUserID

      @Query("SELECT a FROM Address a WHERE a.userId.id = :userId") Optional<Address> findbyUserID(@Param("userId") String userId)
      Select registers by user id.
      Parameters:
      userId - for user id.
      Returns:
      address object