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

import java.util.Optional;

import org.springframework.data.repository.ListCrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.ecep.contract.model.CustomerCatalog;

@Repository
public interface CustomerCatalogRepository extends
        // JDBC interfaces
        ListCrudRepository<CustomerCatalog, Integer>, PagingAndSortingRepository<CustomerCatalog, Integer> {
    Optional<CustomerCatalog> findByCode(String code);
}
