package com.izouma.nineth.repo;

import com.izouma.nineth.domain.AssetSellLimit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface AssetSellLimitRepo extends JpaRepository<AssetSellLimit, Long>, JpaSpecificationExecutor<AssetSellLimit> {

    @Query(value="select asl from AssetSellLimit asl where asl.del = false and asl.collectionId = ?1 ")
    List<AssetSellLimit> findByCollectionId(Long collectionId);

}
