Update pojo.mustache (#10353)

For setters the Jackson based property name conversion  (e. g.  from _-separated to CamelCase) is missing. So I propose this.
This commit is contained in:
klhmeyer
2021-09-09 05:26:26 +02:00
committed by GitHub
parent 0eba15f042
commit 66f86d890d

View File

@@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
return {{name}};
}
@JsonProperty("{{baseName}}")
public void {{setter}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}};
}