From f45900485b4169ee3634c1b08a3558e9a6472017 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 25 Oct 2024 16:02:04 +0200 Subject: [PATCH] feat: add XJC bindings file and config This adds example binding for anonymous oBDS 3 'Geschlecht' type, that should have related Java enum and should not be mapped to Java string. --- build.gradle | 3 ++- src/main/resources/schema/oBDS_v3.0.3.bindings.xjb | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/schema/oBDS_v3.0.3.bindings.xjb diff --git a/build.gradle b/build.gradle index 97a814ac..a17531a9 100644 --- a/build.gradle +++ b/build.gradle @@ -117,7 +117,8 @@ tasks.register('xsd2java') { ant.xjc( destdir: "${jaxbTargetDir}", package: 'de.basisdatensatz.obds.v3', - schema: 'src/main/resources/schema/oBDS_v3.0.3.xsd' + schema: 'src/main/resources/schema/oBDS_v3.0.3.xsd', + binding: 'src/main/resources/schema/oBDS_v3.0.3.bindings.xjb' ) } diff --git a/src/main/resources/schema/oBDS_v3.0.3.bindings.xjb b/src/main/resources/schema/oBDS_v3.0.3.bindings.xjb new file mode 100644 index 00000000..a122739d --- /dev/null +++ b/src/main/resources/schema/oBDS_v3.0.3.bindings.xjb @@ -0,0 +1,8 @@ + + + + + + + +