[JAVA - jaxrs-reasteasy-eap] Add import to models (#179)

Call super management for managing imports in postProcessModelProperty
This commit is contained in:
Thibault Duperron
2018-05-30 07:35:52 +02:00
committed by Jérémie Bresson
parent ad5d5f598e
commit bd50d368eb
2 changed files with 30 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ public class JavaResteasyEapServerCodegen extends AbstractJavaJAXRSServerCodegen
@Override
public void postProcessModelProperty(CodegenModel model, CodegenProperty property) {
super.postProcessModelProperty(model, property);
// Add imports for Jackson
if (!BooleanUtils.toBoolean(model.isEnum)) {
model.imports.add("JsonProperty");