From eb2de1df4b25eaece841f37fb47c2e122caae8ab Mon Sep 17 00:00:00 2001 From: Hknots Date: Mon, 18 Dec 2023 01:40:36 +0100 Subject: [PATCH] add package to typeName --- generate/java/java_class_tpl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate/java/java_class_tpl.go b/generate/java/java_class_tpl.go index 6857cf5..0365ecf 100644 --- a/generate/java/java_class_tpl.go +++ b/generate/java/java_class_tpl.go @@ -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;