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/CascadeNotallAction.persistence.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/CascadeNotallAction.persistence.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/CascadeNotallAction.persistence.xml b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/CascadeNotallAction.persistence.xml
new file mode 100755
index 000000000..6f6d3153c
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/CascadeNotallAction.persistence.xml
@@ -0,0 +1,39 @@
+<?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/cascadenotall">
+
+ <eclass name="Writer">
+ <property name="books">
+ <one-to-many target-entity="Book" mapped-by="author">
+ <cascade>MERGE</cascade>
+ <cascade>PERSIST</cascade>
+ </one-to-many>
+ </property>
+ </eclass>
+
+ <eclass name="Library">
+ <property name="writers">
+ <one-to-many>
+ <cascade>MERGE</cascade>
+ <cascade>PERSIST</cascade>
+ <cascade>REFRESH</cascade>
+ <cascade>REMOVE</cascade>
+ </one-to-many>
+ </property>
+ <property name="books">
+ <one-to-many>
+ <cascade>MERGE</cascade>
+ <cascade>PERSIST</cascade>
+ <cascade>REFRESH</cascade>
+ <cascade>REMOVE</cascade>
+ </one-to-many>
+ </property>
+ </eclass>
+
+ </epackage>
+
+</persistence-mapping> \ No newline at end of file

Back to the top