Package de.dlr.proseo.model.dao
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 TypeMethodDescriptionfindArchivesByCode(String archiveCode) Get the product archives with the given codefindByCode(String code) Get the product archive with the given codeMethods 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
-
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
-