package com.pressing.domain.catalog;

import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ArticleTypeRepository extends JpaRepository<ArticleType, Long>, JpaSpecificationExecutor<ArticleType> {
    List<ArticleType> findBySiteIdOrderByLabelAsc(Long siteId);
    Optional<ArticleType> findByIdAndSiteId(Long id, Long siteId);
}
