Skip to content

Commit

Permalink
fix(codegen): implement missing method for virtual fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Mar 7, 2022
1 parent 36942cf commit 7c963a0
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ public List<PropertyField> getAllPropertyFields() {
return fields;
}

@Override
public List<VirtualField> getAllVirtualFields() {
List<VirtualField> fields = new LinkedList<>();
getParentType()
.map(ComplexTypeDefinition::getAllVirtualFields)
.map(fields::addAll);
fields.addAll(getVirtualFields());
return fields;
}

@Override
public List<PropertyField> getParentPropertyFields() {
return getParentType().map(ComplexTypeDefinition::getAllPropertyFields).orElse(Collections.emptyList());
Expand Down

0 comments on commit 7c963a0

Please sign in to comment.