Interface ShippingInfoRepository

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

public interface ShippingInfoRepository extends org.springframework.data.jpa.repository.JpaRepository<ShippingInfo,Long>
Repository interface for managing ShippingInfo entities.

This interface provides methods for performing CRUD operations and additional query methods for interacting with the database.

Since:
15.12.2024
Version:
1.0.0
Author:
Needle & Stitch
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds a user shipping information by its postal code.

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    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

    • findByPostalCode

      Optional<ShippingInfo> findByPostalCode(String postalCode)
      Finds a user shipping information by its postal code.
      Parameters:
      postalCode - The postal code of the shipping information to find
      Returns:
      An Optional containing the found ShippingInfo if present, otherwise an empty Optional.