title: Enums for Jackson's @JsonProperty
body: <p>Let's say I have an enum:</p>
  
  <pre><code>public enum ParameterList {
      FREQUENCY_ID("500");
      ...
      lot's of different constants here
      ...
  
      private final String param;
  
      ParameterList(String param) {
          this.param = param;
      }
  
      @Override
      public String toString() {
          return param;
      }
  }
  </code></pre>
  
  <p>And let's say I have a DTO with field:</p>
  
  <pre><code>private String frequency;
  </code></pre>
  
  <p>Let's say I have a <code>JSON</code>:</p>
  
  <pre><code>{"500" : "100Hz"}
  </code></pre>
  
  <p>I want to map this <code>json</code> to my <code>dto</code>, so <code>DTO.frequency</code> will have a value of json's <code>"500"</code> field (which will be <code>"100Hz"</code>).</p>
  
  <p>I understand that only constants must be used as attribute values, but is there some workaround to make the following work?</p>
  
  <pre><code>@JsonProperty(ParameterList.FREQUENCY_ID)
  private String frequency;
  </code></pre>
  
  <p>(<code>@JsonProperty</code> is <code>com.fasterxml.jackson.annotation.JsonProperty</code>, version 2.8.0)</p>
  
  <p>The idea is to minimize the code edits when the enum <code>ParameterList.FREQUENCY_ID</code> will be changed from <code>"500"</code>, to some other value.</p>