Skip to content

Commit

Permalink
add package to typeName
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Dec 18, 2023
1 parent 7c810e0 commit eb2de1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate/java/java_class_tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public {{- if .Abstract }} abstract {{- end }} class {{ .Name }} {{ if .Extends
{{ $c := sub (len .Relations) 1 -}}
public enum Relasjonsnavn {
{{- range $i, $rel := .Relations }}
{{ upperCase $rel.Name }}("{{ $rel.Target }}", "{{ $rel.Multiplicity }}"){{ if ne $i $c }},{{ end -}}
{{ upperCase $rel.Name }}("{{ $.Package }}.{{ $rel.Target }}", "{{ $rel.Multiplicity }}"){{ if ne $i $c }},{{ else }};{{ end -}}
{{ end }}
private final String typeName;
Expand Down

0 comments on commit eb2de1d

Please sign in to comment.