Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Don't overwrite the jdbcTemplate if already set #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

magno32
Copy link

@magno32 magno32 commented Mar 25, 2015

Checking if the jdbcOperations/template has been set prior to getting the default from the beanFactory.

This is my fix at least. Refs #20

to getting the default from the beanFactory.
@jirutka
Copy link

jirutka commented Jan 31, 2016

+1, but code-style should be fixed:

-       if(jdbcOperations == null){
            obtainJdbcTemplate();
        }
+       if (jdbcOperations == null) {
            obtainJdbcTemplate();
        }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants