Interface PostalAddressRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PostalAddress,,Long> org.springframework.data.jpa.repository.JpaRepository<PostalAddress,,Long> org.springframework.data.repository.ListCrudRepository<PostalAddress,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<PostalAddress,,Long> org.springframework.data.repository.PagingAndSortingRepository<PostalAddress,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<PostalAddress>,org.springframework.data.repository.Repository<PostalAddress,Long>
public interface PostalAddressRepository
extends org.springframework.data.jpa.repository.JpaRepository<PostalAddress,Long>
JPA Repo for postal address entities
-
Method Summary
Modifier and TypeMethodDescriptionfindByAddressLocalityIgnoreCase(String addressLocality) findByPostalCodeLike(String likeQuery) findByPostalCodeStartsWith(String postalCode) max()min()Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByAddressLocalityIgnoreCase
- Parameters:
addressLocality- addressLocality- Returns:
- list of postalAddress objects
-
findByPostalCodeStartsWith
- Parameters:
postalCode- postalCode- Returns:
- list of postalAddress objects
-
findByPostalCodeLike
@Query("SELECT p FROM PostalAddress p WHERE postalCode LIKE ?1") List<PostalAddress> findByPostalCodeLike(String likeQuery) - Parameters:
likeQuery- postalCode like query- Returns:
- list of postalAddress objects
-
min
- Returns:
- first id
-
max
- Returns:
- last id
-