Interface ProductArchiveRepository

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

public interface ProductArchiveRepository extends org.springframework.data.jpa.repository.JpaRepository<ProductArchive,Long>
Data Access Object for the ProductArchive class
Author:
Dr. Thomas Bassler
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the product archives with the given code
    Get the product archive with the given 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

    • findByCode

      @Query("select pa from ProductArchive pa where UPPER(pa.code) = UPPER(?1)") ProductArchive findByCode(String code)
      Get the product archive with the given code
      Parameters:
      code - the short code of the product archive (case insensitive)
      Returns:
      the unique product archive identified by the code
    • findArchivesByCode

      @Query("select pa from ProductArchive pa where UPPER(pa.code) = UPPER(?1)") List<ProductArchive> findArchivesByCode(String archiveCode)
      Get the product archives with the given code
      Parameters:
      archiveCode - the name of the productArchive
      Returns:
      product archives identified by the code