Schnittstelle ProductArchiveRepository

Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<ProductArchive,Long>, org.springframework.data.jpa.repository.JpaRepository<ProductArchive,Long>, org.springframework.data.repository.PagingAndSortingRepository<ProductArchive,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ProductArchive>, org.springframework.data.repository.Repository<ProductArchive,Long>

@Repository public interface ProductArchiveRepository extends org.springframework.data.jpa.repository.JpaRepository<ProductArchive,Long>
Data Access Object for the ProductArchive class
Autor:
Dr. Thomas Bassler
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Get the product archives with the given code
    Get the product archive with the given code

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save

    Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository

    deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findOne
  • Methodendetails

    • 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
      Parameter:
      code - the short code of the product archive (case insensitive)
      Gibt zurück:
      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
      Parameter:
      archiveCode - the name of the productArchive
      Gibt zurück:
      product archives identified by the code