Skip to content

Commit

Permalink
make use of superResource
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed May 8, 2024
1 parent c71950c commit aeb3f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate/java/java_resource_class_tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public {{- if .Abstract }} abstract {{- end }} class {{ .Name }}Resource {{ if .
@JsonIgnore
@Override
public List<FintLinks> getNestedResources() {
List<FintLinks> result = {{ if not .ExtendsResource }}FintLinks.{{end}}super.getNestedResources();
List<FintLinks> result = {{ if not .ExtendsResource }}{{ superResource .Stereotype }}.{{end}}super.getNestedResources();
{{- range $att := .Resources }}
if ({{$att.Name}} != null) {
result.add{{if $att.List}}All{{end}}({{$att.Name}});
Expand Down

0 comments on commit aeb3f2f

Please sign in to comment.