better naming convention for android-java codegen

This commit is contained in:
William Cheng
2015-03-23 15:41:24 +08:00
parent 048bea6249
commit fd602af180
3 changed files with 49 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {
* maximum: {{maximum}}{{/maximum}}
**/
@ApiModelProperty(required = {{required}}, value = "{{{description}}}")
@JsonProperty("{{name}}")
@JsonProperty("{{baseName}}")
public {{{datatypeWithEnum}}} {{getter}}() {
return {{name}};
}