title: Choose column name dynamically in namedParameterJdbcTemplate in spring
body: <p>Hi The question is pretty straight forward</p>
  
  <p>We all know this query works</p>
  
  <pre><code>String query = SELECT * FROM DATABASE_LOCKER WHERE LAST_HOUR = :last_hour
  
          MapSqlParameterSource parameters = new MapSqlParameterSource();
          parameters.addValue("last_hour","2");
  
  
  getNamedParameterJdbcTemplate().update(
                      QueryConstants.query, parameters);
  </code></pre>
  
  <p>But is this possible in any way?? That is I need to give the column name of a table dynamically</p>
  
  <pre><code>String query = SELECT * FROM DATABASE_LOCKER WHERE :last_hour = 1
  
      MapSqlParameterSource parameters = new MapSqlParameterSource();
      parameters.addValue("last_hour","LAST_HOUR");
  
  
  getNamedParameterJdbcTemplate().update(
                  QueryConstants.query, parameters);
  </code></pre>