title: @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) not working
body: <p>While serialization of the class DataType the dbOptions is been ignored but dataType is being printed with its value.</p>
  
  <p>Note I need to ignore the these property only during serialization and not deserialization.</p>
  
  <pre><code>@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXTERNAL_PROPERTY, property = "dataType")
  @JsonSubTypes(value = {
      @JsonSubTypes.Type(value = DefaultType.class, name = "Default"),
      @JsonSubTypes.Type(value = NumberRangeType.class, name = "NumberRange"),
  
  })
  public abstract class DataType {
  
  @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
  protected String dataType;
  
  @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
  protected String dbOptions;
  
  public String getDataType() {
      return dataType;
  }
  
  public void setDataType(String dataType) {
      this.dataType = dataType;
  }
  
  public String getDbOptions() {
      return dbOptions;
  }
  
  public void setDbOptions(String dbOptions) {
      this.dbOptions = dbOptions;
  }
  
  
  abstract
  public void compute() throws ParseException;
  
  }
  </code></pre>
  
  <p>Sample output is : </p>
  
  <pre><code>"options":{"dataType":"NumberRange","id":"1","min":0,"max":30}
  </code></pre>
  
  <p>Don't want dataType to get printed in the output</p>