Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/cascadenotall/model/library.xsd')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/cascadenotall/model/library.xsd50
1 files changed, 0 insertions, 50 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/cascadenotall/model/library.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/cascadenotall/model/library.xsd
deleted file mode 100644
index a092c6296..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/cascadenotall/model/library.xsd
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:lib="http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:complexType name="Book">
- <xsd:sequence>
- <xsd:element name="title" type="xsd:string"/>
- <xsd:element name="pages" type="xsd:int"/>
- <xsd:element name="category" type="lib:BookCategory"/>
- <xsd:element name="author" type="xsd:anyURI"
- ecore:reference="lib:Writer" ecore:opposite="books"/>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="Writer">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element maxOccurs="unbounded" minOccurs="0" name="books"
- type="xsd:anyURI" ecore:reference="lib:Book" ecore:opposite="author">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@OneToMany(cascade={MERGE,PERSIST} targetEntity="Book" mappedBy="author")</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="Library">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element maxOccurs="unbounded" minOccurs="0"
- name="writers" type="lib:Writer">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@OneToMany(cascade={MERGE,PERSIST,REFRESH,REMOVE})</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- <xsd:element maxOccurs="unbounded" minOccurs="0"
- name="books" type="lib:Book">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@OneToMany(cascade={MERGE,PERSIST,REFRESH,REMOVE})</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:simpleType name="BookCategory">
- <xsd:restriction base="xsd:NCName">
- <xsd:enumeration value="Mystery"/>
- <xsd:enumeration value="ScienceFiction"/>
- <xsd:enumeration value="Biography"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:schema>

Back to the top