package com.ecep.contract.ds.vendor.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.VendorGroup;

@Repository
public interface VendorGroupRepository extends
        JpaRepository<VendorGroup, Integer>, JpaSpecificationExecutor<VendorGroup> {

    Optional<VendorGroup> findByName(String name);

    Optional<VendorGroup> findByCode(String code);

}
