From d7c01faf053a8bcb4e4a1eed70fa2caa409d2cd1 Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Fri, 31 Jan 2025 16:11:39 +0000 Subject: [PATCH] move the java generation to use the new intermediate DataType column resolution format. have changed the format a little to separate the column (c attribute) and field (f attribute). --- tools/xslt/common-binding.xsl | 79 +++++++++-------------------------- tools/xslt/jpa.xsl | 48 ++++++++------------- tools/xslt/vo-dml2java.xsl | 2 - tools/xslt/vo-dml2tap.xsl | 6 +-- 4 files changed, 39 insertions(+), 96 deletions(-) diff --git a/tools/xslt/common-binding.xsl b/tools/xslt/common-binding.xsl index 3defff8..5391aae 100644 --- a/tools/xslt/common-binding.xsl +++ b/tools/xslt/common-binding.xsl @@ -669,24 +669,29 @@ - + + + + - + + - + + - + @@ -697,15 +702,17 @@ - + + + - + - + @@ -714,65 +721,17 @@ - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - diff --git a/tools/xslt/jpa.xsl b/tools/xslt/jpa.xsl index fc0887a..953e0f4 100644 --- a/tools/xslt/jpa.xsl +++ b/tools/xslt/jpa.xsl @@ -4,7 +4,6 @@ "> "> - "> ]> - - true @@ -232,47 +229,36 @@ - - @jakarta.persistence.Embedded + - - - - - - - - - - - - - - - - - - - - - @jakarta.persistence.AttributeOverride(name="", column = @jakarta.persistence.Column(name="", nullable = )) - - - + --> + + + + + + + @jakarta.persistence.AttributeOverrides( { }) + + + + + - + diff --git a/tools/xslt/vo-dml2java.xsl b/tools/xslt/vo-dml2java.xsl index 78b2a9f..f708d7e 100644 --- a/tools/xslt/vo-dml2java.xsl +++ b/tools/xslt/vo-dml2java.xsl @@ -993,8 +993,6 @@ package ; - - true diff --git a/tools/xslt/vo-dml2tap.xsl b/tools/xslt/vo-dml2tap.xsl index 4e4992e..e00f5f8 100644 --- a/tools/xslt/vo-dml2tap.xsl +++ b/tools/xslt/vo-dml2tap.xsl @@ -200,7 +200,7 @@ FIXME This is not yet complete - + attribute from dtype {vf:rdbTapType(@type)} {$top-el/description} @@ -215,7 +215,7 @@ FIXME This is not yet complete - + reference from datatype {vf:rdbKeyType(@type)} {$top-el/description} @@ -238,7 +238,7 @@ FIXME This is not yet complete {$top-vodml-ref} - + {vf:tapTargetColumnName(@type)}