package com.ecep.contract.ds.other.repository;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.ecep.contract.model.InventoryCatalog;

@Repository
public interface InventoryCatalogRepository extends JpaRepository<InventoryCatalog, Integer>, JpaSpecificationExecutor<InventoryCatalog> {
    Optional<InventoryCatalog> findByCode(String code);

    Optional<InventoryCatalog> findByName(String name);
}