title: Custom fields on java enum not getting serialized
body: <p>I have a Java Enum as shown below:</p>
  
  <pre><code>public enum ExecutionMode {
    TYPE_A,
    TYPE_B,
    TYPE_C;
  
    private ExecutionMode(){} //no args constr- no really required
  
    private boolean incremental; //has get/set
    private String someStr;      //has get/set
  }
  </code></pre>
  
  <p>I see that after deserialization, the custom fields on the enum are lost.
  On reading more about it, I got the impression that enum gets deserialized into a string and hence its custom fields are ignored.</p>
  
  <p>If its true, am I abusing Enum here &amp; should just use POJO istead?
  Or is there a way to serialize the custom fields (that are not part of the constructor)?</p>
  
  <p>Thanks!</p>