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;