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/lazy/model')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore113
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd54
3 files changed, 0 insertions, 199 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore
deleted file mode 100644
index 9d789c996..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="lazy"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy" nsPrefix="lazy">
- <eClassifiers xsi:type="ecore:EClass" name="Book">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Book"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="title"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="pages"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" unique="false"
- lowerBound="1" eType="#//BookCategory" defaultValueLiteral="Mystery" unsettable="true">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="category"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
- eType="#//Writer" eOpposite="#//Writer/books">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@ManyToOne(fetch=LAZY)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="author"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="BookCategory"/>
- </eAnnotations>
- <eLiterals name="Mystery"/>
- <eLiterals name="ScienceFiction" value="1"/>
- <eLiterals name="Biography" value="2"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="BookCategoryObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="BookCategory:Object"/>
- <details key="baseType" value="BookCategory"/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Library">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Library"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
- eType="#//Writer" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(fetch=EAGER cascade=ALL targetEntity=&quot;Writer&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="writers"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
- eType="#//Book" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(fetch=EAGER cascade=ALL targetEntity=&quot;Book&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="books"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Writer">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Writer"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
- eType="#//Book" eOpposite="#//Book/author">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(cascade={MERGE,PERSIST} targetEntity=&quot;Book&quot; mappedBy=&quot;author&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="books"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel
deleted file mode 100644
index f58de18ef..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.teneo.samples/src"
- modelPluginID="org.eclipse.emf.teneo.samples" modelName="Lazy" importerID="org.eclipse.xsd.ecore.importer"
- complianceLevel="5.0">
- <foreignModel>lazy.xsd</foreignModel>
- <genPackages prefix="Lazy" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="lazy.ecore#/">
- <genEnums ecoreEnum="lazy.ecore#//BookCategory">
- <genEnumLiterals ecoreEnumLiteral="lazy.ecore#//BookCategory/Mystery"/>
- <genEnumLiterals ecoreEnumLiteral="lazy.ecore#//BookCategory/ScienceFiction"/>
- <genEnumLiterals ecoreEnumLiteral="lazy.ecore#//BookCategory/Biography"/>
- </genEnums>
- <genDataTypes ecoreDataType="lazy.ecore#//BookCategoryObject"/>
- <genClasses ecoreClass="lazy.ecore#//Book">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Book/title"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Book/pages"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Book/category"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference lazy.ecore#//Book/author"/>
- </genClasses>
- <genClasses ecoreClass="lazy.ecore#//Library">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Library/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference lazy.ecore#//Library/writers"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference lazy.ecore#//Library/books"/>
- </genClasses>
- <genClasses ecoreClass="lazy.ecore#//Writer">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Writer/name"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference lazy.ecore#//Writer/books"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd
deleted file mode 100644
index 12402d959..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:lib="http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy"
- 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:annotation>
- <xsd:appinfo source="teneo.jpa">@ManyToOne(fetch=LAZY)</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </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(fetch=EAGER cascade=ALL targetEntity="Writer")</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(fetch=EAGER cascade=ALL targetEntity="Book")</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