From d6e9138aec8f4497f319e056aaa06e72051c92b3 Mon Sep 17 00:00:00 2001 From: Hardy Ferentschik Date: Mon, 18 Apr 2011 14:19:40 +0200 Subject: [PATCH] HHH-6131 Prefixing JAXB classes with 'XML' --- hibernate-core/hibernate-core.gradle | 6 +++--- .../main/xjb/hbm-configuration-bindings.xjb | 19 +++++++++++++++++++ .../src/main/xjb/hbm-mapping-bindings.xjb | 19 +++++++++++++++++++ hibernate-core/src/main/xjb/orm-bindings.xjb | 19 +++++++++++++++++++ 4 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 hibernate-core/src/main/xjb/hbm-configuration-bindings.xjb create mode 100644 hibernate-core/src/main/xjb/hbm-mapping-bindings.xjb create mode 100644 hibernate-core/src/main/xjb/orm-bindings.xjb diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle index fb198df70b..6827e03fcc 100644 --- a/hibernate-core/hibernate-core.gradle +++ b/hibernate-core/hibernate-core.gradle @@ -53,13 +53,13 @@ task jaxb << { ant.taskdef(name: 'xjc', classname: 'com.sun.tools.xjc.XJCTask', classpath: configurations.jaxb.asPath) ant.jaxbTargetDir = jaxbTargetDir - ant.xjc(destdir: '${jaxbTargetDir}', package: 'org.hibernate.metamodel.source.hbm.xml.config') { + ant.xjc(destdir: '${jaxbTargetDir}', package: 'org.hibernate.metamodel.source.hbm.xml.config', binding: 'src/main/xjb/hbm-configuration-bindings.xjb') { schema(dir: 'src/main/resources/org/hibernate', includes: 'hibernate-configuration-4.0.xsd') } - ant.xjc(destdir: '${jaxbTargetDir}', package: 'org.hibernate.metamodel.source.hbm.xml.mapping') { + ant.xjc(destdir: '${jaxbTargetDir}', package: 'org.hibernate.metamodel.source.hbm.xml.mapping', binding: 'src/main/xjb/hbm-mapping-bindings.xjb') { schema(dir: 'src/main/resources/org/hibernate', includes: 'hibernate-mapping-4.0.xsd') } - ant.xjc(destdir: '${jaxbTargetDir}', package: 'org.hibernate.metamodel.source.annotation.xml') { + ant.xjc(destdir: '${jaxbTargetDir}', package: 'org.hibernate.metamodel.source.annotation.xml', binding: 'src/main/xjb/orm-bindings.xjb') { schema(dir: 'src/main/resources/org/hibernate/ejb', includes: 'orm_2_0.xsd') } } diff --git a/hibernate-core/src/main/xjb/hbm-configuration-bindings.xjb b/hibernate-core/src/main/xjb/hbm-configuration-bindings.xjb new file mode 100644 index 0000000000..abe40d8b8d --- /dev/null +++ b/hibernate-core/src/main/xjb/hbm-configuration-bindings.xjb @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/hibernate-core/src/main/xjb/hbm-mapping-bindings.xjb b/hibernate-core/src/main/xjb/hbm-mapping-bindings.xjb new file mode 100644 index 0000000000..69a0e09f35 --- /dev/null +++ b/hibernate-core/src/main/xjb/hbm-mapping-bindings.xjb @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/hibernate-core/src/main/xjb/orm-bindings.xjb b/hibernate-core/src/main/xjb/orm-bindings.xjb new file mode 100644 index 0000000000..8a436e4c2a --- /dev/null +++ b/hibernate-core/src/main/xjb/orm-bindings.xjb @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + \ No newline at end of file