package com.centralnabanka.repository;

import com.centralnabanka.model.Bank;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface BankRepository extends JpaRepository<Bank, Long> {

    Optional<Bank> findBySwiftCode(String swiftCode);
}

Create Bank repository