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