Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/ToOneAction.persistence.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/ToOneAction.persistence.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/ToOneAction.persistence.xml b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/ToOneAction.persistence.xml
new file mode 100755
index 000000000..b4ba5e0bb
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/ToOneAction.persistence.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<persistence-mapping xmlns="http://www.eclipse.org/emft/teneo"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <!-- Template for TestAction persistence mapping. -->
+
+ <epackage namespace-uri="http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone">
+
+ <eclass name="Head">
+ <property name="person">
+ <one-to-one target-entity="Person" optional="false" mapped-by="head" fetch="EAGER">
+ <cascade>MERGE</cascade>
+ <cascade>PERSIST</cascade>
+ <cascade>REFRESH</cascade>
+ </one-to-one>
+ </property>
+ </eclass>
+
+ <eclass name="Person">
+ <property name="address">
+ <many-to-one fetch="EAGER" target-entity="Address" optional="true">
+ <cascade>MERGE</cascade>
+ <cascade>PERSIST</cascade>
+ <cascade>REFRESH</cascade>
+ </many-to-one>
+ </property>
+ <property name="head">
+ <one-to-one fetch="EAGER" target-entity="Head" optional="true" cascade="ALL" />
+ </property>
+ </eclass>
+
+ </epackage>
+
+</persistence-mapping> \ No newline at end of file

Back to the top