Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model')
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.ecore13
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.genmodel24
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.ecore119
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.genmodel84
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml251
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old19
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/samples/eclipseConForum.forum5
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.ecore33
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.genmodel23
9 files changed, 571 insertions, 0 deletions
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.ecore b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.ecore
new file mode 100755
index 000000000..d55c0bc05
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.ecore
@@ -0,0 +1,13 @@
+<?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="forum"
+ nsURI="http:///org/eclipse/emf/teneo/eclipselink/examples/forum.ecore" nsPrefix="forum">
+ <eClassifiers xsi:type="ecore:EClass" name="Forum">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ratedAuthors" upperBound="-1"
+ eType="ecore:EClass library.ecore#//Writer"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="featuredBooks" upperBound="-1"
+ eType="ecore:EClass library.ecore#//Book"/>
+ </eClassifiers>
+</ecore:EPackage>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.genmodel b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.genmodel
new file mode 100755
index 000000000..54d92f376
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/forum.genmodel
@@ -0,0 +1,24 @@
+<?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.eclipselink.examples.library/src"
+ editDirectory="/org.eclipse.emf.teneo.eclipselink.examples.library.edit/src" editorDirectory="/org.eclipse.emf.teneo.eclipselink.examples.library.editor/src"
+ modelPluginID="org.eclipse.emf.teneo.eclipselink.examples.library" modelName="Forum"
+ modelPluginClass="org.eclipse.emf.teneo.eclipselink.examples.library.Activator"
+ editPluginClass="org.eclipse.emf.teneo.eclipselink.examples.library.edit.Activator"
+ editorPluginClass="org.eclipse.emf.teneo.eclipselink.examples.library.editor.Activator"
+ nonNLSMarkers="true" testsDirectory="" testSuiteClass="" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false" usedGenPackages="library.genmodel#//library">
+ <foreignModel>forum.ecore</foreignModel>
+ <genPackages prefix="Forum" basePackage="org.eclipse.emf.teneo.eclipselink.examples.library"
+ disposableProviderFactory="true" providerPackageSuffix="edit" presentationPackageSuffix="editor"
+ ecorePackage="forum.ecore#/">
+ <genClasses ecoreClass="forum.ecore#//Forum">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute forum.ecore#//Forum/name"/>
+ <genFeatures children="true" createChild="false" propertySortChoices="true"
+ ecoreFeature="ecore:EReference forum.ecore#//Forum/ratedAuthors"/>
+ <genFeatures children="true" createChild="false" propertyDescription="" propertySortChoices="true"
+ ecoreFeature="ecore:EReference forum.ecore#//Forum/featuredBooks"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.ecore b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.ecore
new file mode 100755
index 000000000..743e5970c
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.ecore
@@ -0,0 +1,119 @@
+<?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="library"
+ nsURI="http:///org/eclipse/emf/teneo/eclipselink/examples/library.ecore" nsPrefix="library">
+ <eClassifiers xsi:type="ecore:EClass" name="Book" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ defaultValueLiteral=""/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
+ defaultValueLiteral="100"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="#//BookCategory"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
+ eType="#//Writer" eOpposite="#//Writer/books"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="styles" upperBound="-1"
+ eType="#//BookStylesMapEntry" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="translator" eType="#//Translator"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="cover" eType="#//Cover"
+ containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="derivedAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ volatile="true" derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Library" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
+ eType="#//Writer" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
+ eType="#//StringToBookMapEntry" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Writer" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ iD="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
+ eType="#//Book" eOpposite="#//Book/author"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="address" eType="#//Address"
+ containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="publishers" upperBound="-1"
+ eType="#//Publisher" eOpposite="#//Publisher/writers"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="typewriters" upperBound="-1"
+ eType="#//TypeWriter"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
+ <eLiterals name="Mystery"/>
+ <eLiterals name="ScienceFiction" value="1"/>
+ <eLiterals name="Biography" value="2"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="StringToBookMapEntry" instanceClassName="java.util.Map$Entry"
+ eSuperTypes="#//Identifiable">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Table(name=&quot;EMFLIB_LIBRARY_BOOK_MAP&quot;)"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Book"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Address" eSuperTypes="#//Identifiable">
+ <eAnnotations source="http://www.oracle.com/toplink/emf/2006/ContainerMapping">
+ <details key="eContainingClassName" value="Writer"/>
+ <details key="eContainingClassPackageName" value="library"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="town" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Publisher" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
+ eType="#//Writer" eOpposite="#//Writer/publishers">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@JoinTable(name=&quot;EMFLIB_PUBLISHER_WRITERS&quot;)"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Style" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="BookStylesMapEntry" instanceClassName="java.util.Map$Entry"
+ eSuperTypes="#//Identifiable">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Table(name=&quot;EMFLIB_BOOK_STYLE_MAP&quot;)"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Style"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Translator" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="location" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="address" eType="#//Address"
+ containment="true">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Transient"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="TWriterType">
+ <eLiterals name="Typewriter"/>
+ <eLiterals name="Computer" value="1"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TypeWriter" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="maker" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//TWriterType"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Cover" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="colored" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Identifiable" abstract="true">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@MappedSuperclass"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Id&#xA;@GeneratedValue"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Version"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="AbstractTest" abstract="true"/>
+</ecore:EPackage>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.genmodel b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.genmodel
new file mode 100755
index 000000000..6f53ff8c6
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/library.genmodel
@@ -0,0 +1,84 @@
+<?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.eclipselink.examples.library/src"
+ creationSubmenus="true" editDirectory="/org.eclipse.emf.teneo.eclipselink.examples.library.edit/src"
+ editorDirectory="/org.eclipse.emf.teneo.eclipselink.examples.library.editor/src"
+ modelPluginID="org.eclipse.emf.teneo.eclipselink.examples.library" modelName="Library"
+ modelPluginClass="org.eclipse.emf.teneo.eclipselink.examples.library.Activator"
+ editPluginClass="org.eclipse.emf.teneo.eclipselink.examples.library.edit.Activator"
+ editorPluginClass="org.eclipse.emf.teneo.eclipselink.examples.library.editor.Activator"
+ nonNLSMarkers="true" testsDirectory="" testSuiteClass="" booleanFlagsField=""
+ importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>library.ecore</foreignModel>
+ <genPackages prefix="Library" basePackage="org.eclipse.emf.teneo.eclipselink.examples"
+ disposableProviderFactory="true" providerPackageSuffix="edit" presentationPackageSuffix="editor"
+ ecorePackage="library.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="library.ecore#//BookCategory">
+ <genEnumLiterals ecoreEnumLiteral="library.ecore#//BookCategory/Mystery"/>
+ <genEnumLiterals ecoreEnumLiteral="library.ecore#//BookCategory/ScienceFiction"/>
+ <genEnumLiterals ecoreEnumLiteral="library.ecore#//BookCategory/Biography"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="library.ecore#//TWriterType">
+ <genEnumLiterals ecoreEnumLiteral="library.ecore#//TWriterType/Typewriter"/>
+ <genEnumLiterals ecoreEnumLiteral="library.ecore#//TWriterType/Computer"/>
+ </genEnums>
+ <genClasses ecoreClass="library.ecore#//Book">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Book/title"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Book/pages"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Book/category"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//Book/author"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Book/styles"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//Book/translator"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Book/cover"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Book/derivedAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Library">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Library/name"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Library/writers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Library/books"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Writer">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Writer/name"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//Writer/books"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Writer/address"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//Writer/publishers"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//Writer/typewriters"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//StringToBookMapEntry">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//StringToBookMapEntry/key"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//StringToBookMapEntry/value"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Address">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Address/town"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Publisher">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Publisher/name"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//Publisher/writers"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Style">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Style/name"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//BookStylesMapEntry">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//BookStylesMapEntry/key"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//BookStylesMapEntry/value"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Translator">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Translator/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Translator/location"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Translator/address"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//TypeWriter">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//TypeWriter/maker"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//TypeWriter/type"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Cover">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Cover/colored"/>
+ </genClasses>
+ <genClasses ecoreClass="library.ecore#//Identifiable">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Identifiable/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Identifiable/version"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="library.ecore#//AbstractTest"/>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml
new file mode 100755
index 000000000..f6de441dd
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml
@@ -0,0 +1,251 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+ <persistence-unit-metadata>
+ <xml-mapping-metadata-complete/>
+ <persistence-unit-defaults>
+ <access>FIELD</access>
+ </persistence-unit-defaults>
+ </persistence-unit-metadata>
+ <mapped-superclass class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.IdentifiableImpl">
+ <attributes>
+ <id name="id">
+ <generated-value strategy="AUTO"/>
+ </id>
+ <basic name="eContainerFeatureID">
+ <column name="ECONT_FEAT_ID"/>
+ </basic>
+ <version name="version"/>
+ </attributes>
+ </mapped-superclass>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl" name="Book">
+ <table name="BOOK"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="title" optional="true"/>
+ <basic fetch="EAGER" name="pages" optional="true"/>
+ <basic fetch="EAGER" name="category" optional="true">
+ <enumerated>STRING</enumerated>
+ </basic>
+ <many-to-one fetch="EAGER" name="author" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-one>
+ <many-to-one fetch="EAGER" name="translator" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TranslatorImpl">
+ <join-column insertable="true" name="TRANSLATOR_TRANSLATOR_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-one>
+ <one-to-many fetch="LAZY" mapped-by="eContainer" name="styles" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookStylesMapEntryImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-many>
+ <one-to-one fetch="EAGER" name="cover" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.CoverImpl">
+ <join-column insertable="true" name="COVER_COVER_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ <one-to-one mapped-by="value" name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl" name="Library">
+ <table name="LIBRARY"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <one-to-many fetch="LAZY" mapped-by="eContainer" name="writers" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-many>
+ <one-to-many fetch="LAZY" mapped-by="eContainer" name="books" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-many>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl" name="Writer">
+ <table name="WRITER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <many-to-one name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl">
+ <join-column name="LIBRARY_WRITERS_ID"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </many-to-one>
+ <one-to-many fetch="LAZY" name="books" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <join-table name="WRITER_BOOKS">
+ <join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="BOOK_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </one-to-many>
+ <one-to-many fetch="LAZY" name="typewriters" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TypeWriterImpl">
+ <join-table name="WRITER_TYPEWRITERS">
+ <join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="TYPEWRITER_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </one-to-many>
+ <one-to-one fetch="EAGER" name="address" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.AddressImpl">
+ <join-column insertable="true" name="ADDRESS_ADDRESS_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ <many-to-many fetch="LAZY" name="publishers" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.PublisherImpl">
+ <join-table name="WRITER_PUBLISHERS">
+ <join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="PUBLISHER_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-many>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl" name="StringToBookMapEntry">
+ <table name="EMFLIB_LIBRARY_BOOK_MAP"/>
+ <inheritance strategy="JOINED"/>
+ <attribute-override name="id">
+ <column insertable="false" name="LIBRARY_BOOKS_ID" updatable="false"/>
+ </attribute-override>
+ <attributes>
+ <id name="key">
+ <column name="e_key"/>
+ </id>
+ <many-to-one name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl">
+ <join-column name="LIBRARY_BOOKS_ID"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </many-to-one>
+ <one-to-one fetch="EAGER" name="value" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <join-column insertable="true" name="BOOK_VALUE_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ <transient name="hash"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.AddressImpl" name="Address">
+ <table name="ADDRESS"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="town" optional="true"/>
+ <one-to-one mapped-by="address" name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.PublisherImpl" name="Publisher">
+ <table name="PUBLISHER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <many-to-many fetch="LAZY" mapped-by="publishers" name="writers" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <join-table name="EMFLIB_PUBLISHER_WRITERS">
+ <join-column insertable="true" name="PUBLISHER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-many>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StyleImpl" name="Style">
+ <table name="STYLE"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookStylesMapEntryImpl" name="BookStylesMapEntry">
+ <table name="EMFLIB_BOOK_STYLE_MAP"/>
+ <inheritance strategy="JOINED"/>
+ <attribute-override name="id">
+ <column insertable="false" name="BOOK_STYLES_ID" updatable="false"/>
+ </attribute-override>
+ <attributes>
+ <id name="key">
+ <column name="e_key"/>
+ </id>
+ <many-to-one fetch="EAGER" name="value" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StyleImpl">
+ <join-column insertable="true" name="STYLE_VALUE_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-one>
+ <many-to-one name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <join-column name="BOOK_STYLES_ID"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </many-to-one>
+ <transient name="hash"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TranslatorImpl" name="Translator">
+ <table name="TRANSLATOR"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <basic fetch="EAGER" name="location" optional="true"/>
+ <transient name="address"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TypeWriterImpl" name="TypeWriter">
+ <table name="TYPEWRITER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="maker" optional="true"/>
+ <basic fetch="EAGER" name="type" optional="true">
+ <enumerated>STRING</enumerated>
+ </basic>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.CoverImpl" name="Cover">
+ <table name="COVER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="colored" optional="true"/>
+ <one-to-one mapped-by="cover" name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ </attributes>
+ </entity>
+</entity-mappings> \ No newline at end of file
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old
new file mode 100755
index 000000000..aaa614e58
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" version="1.0">
+ <persistence-unit-metadata>
+ <xml-mapping-metadata-complete/>
+ <persistence-unit-defaults>
+ <access>FIELD</access>
+ </persistence-unit-defaults>
+ </persistence-unit-metadata>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.suppressinterfaces.test" name="test">
+ <table name="TEST"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <basic name="eContainerFeatureID">
+ <column name="ECONT_FEAT_ID"/>
+ </basic>
+ </attributes>
+ </entity>
+</entity-mappings> \ No newline at end of file
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/samples/eclipseConForum.forum b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/samples/eclipseConForum.forum
new file mode 100755
index 000000000..a50e76180
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/samples/eclipseConForum.forum
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="ASCII"?>
+<forum:Forum xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:forum="http:///oracle/toplink/emf/examples/library/forum.ecore" name="EclipseCon Forum">
+ <ratedAuthors href="tle:///library?select o from Library o where o.name = 'EclipseCon Library'#Writer|name='The True Eclipse Expert'"/>
+ <featuredBooks href="tle:///library?select o from Library o where o.name = 'EclipseCon Library'#//@books.0/@value"/>
+</forum:Forum>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.ecore b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.ecore
new file mode 100755
index 000000000..cfddc3d2f
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.ecore
@@ -0,0 +1,33 @@
+<?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="suppressinterfaces"
+ nsURI="http:///org/eclipse/emf/teneo/eclipselink/examples/test_suppressinterfaces.ecore"
+ nsPrefix="suppressinterfaces">
+ <eClassifiers xsi:type="ecore:EClass" name="Test" eSuperTypes="#//Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="testEmbedded" eType="#//TestEmbedded">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Embedded"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TestEmbedded">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Embeddable"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="nameEmbedded" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Identifiable">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Id&#xA;@GeneratedValue"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong">
+ <eAnnotations source="teneo.jpa">
+ <details key="value" value="@Version"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.genmodel b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.genmodel
new file mode 100755
index 000000000..130c07919
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/model/test_suppressinterfaces.genmodel
@@ -0,0 +1,23 @@
+<?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.eclipselink.examples.library/src"
+ modelPluginID="org.eclipse.emf.teneo.eclipselink.examples.library" modelName="Test_suppressinterfaces"
+ suppressInterfaces="true" importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0"
+ copyrightFields="false">
+ <foreignModel>test_suppressinterfaces.ecore</foreignModel>
+ <genPackages prefix="Suppressinterfaces" basePackage="org.eclipse.emf.teneo.eclipselink.examples"
+ disposableProviderFactory="true" ecorePackage="test_suppressinterfaces.ecore#/">
+ <genClasses ecoreClass="test_suppressinterfaces.ecore#//Test">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute test_suppressinterfaces.ecore#//Test/name"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference test_suppressinterfaces.ecore#//Test/testEmbedded"/>
+ </genClasses>
+ <genClasses ecoreClass="test_suppressinterfaces.ecore#//TestEmbedded">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute test_suppressinterfaces.ecore#//TestEmbedded/nameEmbedded"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="test_suppressinterfaces.ecore#//Identifiable">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute test_suppressinterfaces.ecore#//Identifiable/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute test_suppressinterfaces.ecore#//Identifiable/version"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>

Back to the top