class BudgetRepository {

    public Budget findById(final Budget budget) {

        final BudgetEntity entity = budgetJdbcRepository.findById(new BudgetEntity().toEntity(budget));

        if (entity != null)
            return entity.toDomain();

        return null;
    }

    @Autowired public  BudgetRepository(BudgetJdbcRepository budgetJdbcRepository, BudgetQueueRepository budgetQueueRepository,
                            @Value("${persist.through.kafka}") String persistThroughKafka,FinancialConfigurationContractRepository financialConfigurationContractRepository,
                            BudgetESRepository budgetESRepository);

}