package br.gov.sigefp.budget.repository;

import br.gov.sigefp.budget.domain.EconomicClassification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;
import java.util.UUID;

@Repository
public interface EconomicClassificationRepository
        extends JpaRepository<EconomicClassification, UUID>, JpaSpecificationExecutor<EconomicClassification> {
    Optional<EconomicClassification> findByCode(String code);
}
