package br.gov.sigefp.common.repository;

import br.gov.sigefp.common.domain.Bank;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

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

@Repository
public interface BankRepository extends JpaRepository<Bank, UUID> {
    
    Optional<Bank> findByCode(String code);
    
    boolean existsByCode(String code);
}

