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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    findByProductId(Long productId)
     
     
    findRestrictedProducts(Long restrictedProductId)
     

    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.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findBy, findOne

    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
  • Field Details

  • Method Details

    • findByProductId

      @Query("select pm from ProductMix pm where pm.product.id = :productId") List<ProductMix> findByProductId(@Param("productId") Long productId)
    • findRestrictedProductIdsByProductId

      @Query("Select pm.restrictedProduct.id from ProductMix pm where pm.product.id = :productId") List<Long> findRestrictedProductIdsByProductId(@Param("productId") Long productId)
    • findRestrictedProducts

      @Query("select pm from ProductMix pm where pm.restrictedProduct.id = :restrictedProductId") List<ProductMix> findRestrictedProducts(@Param("restrictedProductId") Long restrictedProductId)