Make SQL statement for JDBC repo configurable

This commit is contained in:
Dave Syer
2017-11-09 15:14:56 +00:00
parent 03588744ad
commit b278e531c9

View File

@@ -61,6 +61,14 @@ public class JdbcEnvironmentRepository implements EnvironmentRepository, Ordered
public JdbcEnvironmentRepository(JdbcTemplate jdbc) {
this.jdbc = jdbc;
}
public void setSql(String sql) {
this.sql = sql;
}
public String getSql() {
return this.sql;
}
@Override
public Environment findOne(String application, String profile, String label) {