Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
{{{vendorExtensions.extraAnnotation}}}
{{/vendorExtensions.extraAnnotation}}
public {{{datatypeWithEnum}}} {{getter}}() {
{{#parent}}
return {{name}} == null ? ({{{datatypeWithEnum}}}) this.get("{{name}}") : {{name}};
{{/parent}}
{{^parent}}
return {{name}};
{{/parent}}
}
{{^isReadOnly}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Cat declawed(Boolean declawed) {
**/
@ApiModelProperty(value = "")
public Boolean isDeclawed() {
return declawed;
return declawed == null ? (Boolean) this.get("declawed") : declawed;
}

public void setDeclawed(Boolean declawed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Dog breed(String breed) {
**/
@ApiModelProperty(value = "")
public String getBreed() {
return breed;
return breed == null ? (String) this.get("breed") : breed;
}

public void setBreed(String breed) {
Expand Down