Interface ProductMixRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ProductMix,,Long> org.springframework.data.jpa.repository.JpaRepository<ProductMix,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<ProductMix>,org.springframework.data.repository.ListCrudRepository<ProductMix,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<ProductMix,,Long> org.springframework.data.repository.PagingAndSortingRepository<ProductMix,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ProductMix>,org.springframework.data.repository.Repository<ProductMix,Long>
public interface ProductMixRepository
extends org.springframework.data.jpa.repository.JpaRepository<ProductMix,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<ProductMix>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfindByProductId(Long productId) findRestrictedProductIdsByProductId(Long productId) findRestrictedProducts(Long restrictedProductId) 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.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findBy, findOneMethods 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
-
Field Details
-
GET_PRODUCTMIXES_BY_PRODUCTID_SCHEMA
- See Also:
-
GET_RESTRICTED_PRODUCTIDS_SCHEMA
- See Also:
-
GET_RESTRICTED_PRODUCTS_SCHEMA
- See Also:
-
-
Method Details
-
findByProductId
@Query("select pm from ProductMix pm where pm.product.id = :productId") List<ProductMix> findByProductId(@Param("productId") Long productId) -
findRestrictedProductIdsByProductId
-
findRestrictedProducts
@Query("select pm from ProductMix pm where pm.restrictedProduct.id = :restrictedProductId") List<ProductMix> findRestrictedProducts(@Param("restrictedProductId") Long restrictedProductId)
-