package com.izouma.dingdong.repo.merchant;

import com.izouma.dingdong.domain.merchant.MerchantClassification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface MerchantClassificationRepo extends JpaRepository<MerchantClassification, Long>, JpaSpecificationExecutor<MerchantClassification> {
    List<MerchantClassification> findAllByMerchantId(Long merchantId);

    //List<MerchantClassification> findAllByUserId(Long userId);

    MerchantClassification findByMerchantIdAndName(Long merchantId, String Name);

    //MerchantClassification findByUserIdAndName(Long merchantId, String Name);

}