aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons/src/main/resources/bindings.xjb
diff options
context:
space:
mode:
authorGerwin Gsenger <g.gsenger@datentechnik-innovation.at>2015-01-12 17:39:59 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2015-06-19 11:05:53 +0200
commit3d8ea79b6167a2e4784beaafe5596cc78519e358 (patch)
tree605f146c7eb7810e334f9418e1f27df9a48e95ca /id/server/moa-id-commons/src/main/resources/bindings.xjb
parent4d16df7e7a3a893332248d20d032d23605eb091e (diff)
downloadmoa-id-spss-3d8ea79b6167a2e4784beaafe5596cc78519e358.tar.gz
moa-id-spss-3d8ea79b6167a2e4784beaafe5596cc78519e358.tar.bz2
moa-id-spss-3d8ea79b6167a2e4784beaafe5596cc78519e358.zip
fix hibernate setup
Diffstat (limited to 'id/server/moa-id-commons/src/main/resources/bindings.xjb')
-rw-r--r--id/server/moa-id-commons/src/main/resources/bindings.xjb35
1 files changed, 35 insertions, 0 deletions
diff --git a/id/server/moa-id-commons/src/main/resources/bindings.xjb b/id/server/moa-id-commons/src/main/resources/bindings.xjb
new file mode 100644
index 000000000..21714849b
--- /dev/null
+++ b/id/server/moa-id-commons/src/main/resources/bindings.xjb
@@ -0,0 +1,35 @@
+<jaxb:bindings version="2.1"
+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
+ xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
+ xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
+ jaxb:extensionBindingPrefixes="hj">
+
+ <jaxb:bindings schemaLocation="moaid_config_2.0.xsd" node="/xsd:schema">
+ <jaxb:globalBindings localScoping="toplevel">
+ <jaxb:serializable/>
+ <xjc:javaType name="java.lang.Boolean"
+ xmlType="xsd:boolean"
+ adapter="com.sun.tools.xjc.runtime.ZeroOneBooleanAdapter"/>
+ </jaxb:globalBindings>
+ </jaxb:bindings>
+
+ <jaxb:bindings schemaLocation="moaid_config_2.0.xsd" node="/xsd:schema/xsd:element[@name='C-PEPS']//xsd:element[@ref='OA_STORK']">
+ <hj:many-to-many name="OA_STORK">
+ <orm:join-table name="OA_CPEPS">
+ <orm:join-column name="aid" referenced-column-name="hjid" />
+ <orm:inverse-join-column name="bid" referenced-column-name="hjid" />
+ </orm:join-table>
+ </hj:many-to-many>
+ </jaxb:bindings>
+
+ <jaxb:bindings schemaLocation="moaid_config_2.0.xsd" node="/xsd:schema/xsd:element[@name='OA_STORK']//xsd:element[@ref='C-PEPS']">
+ <hj:many-to-many name="CPEPS" mappedBy="OA_STORK">
+ <hj:cascade>
+ <hj:cascade-persist/>
+ </hj:cascade>
+ </hj:many-to-many>
+ </jaxb:bindings>
+
+</jaxb:bindings> \ No newline at end of file