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/hbmapkeys')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Book.java97
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/City.java84
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysFactory.java64
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysPackage.java571
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Writer.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/BookImpl.java261
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/CityImpl.java210
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysFactoryImpl.java145
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysPackageImpl.java535
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/StringToWriterMapEntryImpl.java291
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterImpl.java167
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterToCityMapEntryImpl.java266
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.ecore114
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.genmodel31
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.xsd56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysAdapterFactory.java198
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysSwitch.java215
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysXMLProcessor.java54
20 files changed, 0 insertions, 3503 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Book.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Book.java
deleted file mode 100644
index 895f27233..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Book.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Book.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys;
-
-import org.eclipse.emf.common.util.EMap;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Book</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getTitle <em>Title</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getWritersByName <em>Writers By Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getCityByWriter <em>City By Writer</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getBook()
- * @model extendedMetaData="name='Book' kind='elementOnly'"
- * @generated
- */
-public interface Book extends EObject {
- /**
- * Returns the value of the '<em><b>Title</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Title</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Title</em>' attribute.
- * @see #setTitle(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getBook_Title()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='title'"
- * @generated
- */
- String getTitle();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getTitle <em>Title</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Title</em>' attribute.
- * @see #getTitle()
- * @generated
- */
- void setTitle(String value);
-
- /**
- * Returns the value of the '<em><b>Writers By Name</b></em>' map.
- * The key is of type {@link java.lang.String},
- * and the value is of type {@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer},
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Writers By Name</em>' map isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Writers By Name</em>' map.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getBook_WritersByName()
- * @model mapType="org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.StringToWriterMapEntry<org.eclipse.emf.ecore.xml.type.String, org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer>"
- * annotation="teneo.jpa appinfo='\n\t\t\t\t\t\t@HbMapKey(columns=@Column(name=\"THENAMEOFTHEWRITER\"))\n\t\t\t\t\t\t@JoinColumn(name=\"JOIN_COLUMN_WRITER\")\n\t\t\t\t\t'"
- * extendedMetaData="kind='element' name='writersByName'"
- * @generated
- */
- EMap<String, Writer> getWritersByName();
-
- /**
- * Returns the value of the '<em><b>City By Writer</b></em>' map.
- * The key is of type {@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer},
- * and the value is of type {@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City},
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>City By Writer</em>' map isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>City By Writer</em>' map.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getBook_CityByWriter()
- * @model mapType="org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.WriterToCityMapEntry<org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer, org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City>"
- * annotation="teneo.jpa appinfo='\n\t\t\t\t\t\t@MapKeyManyToMany(targetEntity=\"Writer\", joinColumns=@JoinColumn(name=\"THE_CITYWRITER_ID\"))\n\t\t\t\t\t\t@JoinColumn(name=\"JOIN_COLUMN_CITY\")\n\t\t\t\t\t'"
- * extendedMetaData="kind='element' name='cityByWriter'"
- * @generated
- */
- EMap<Writer, City> getCityByWriter();
-
-} // Book
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/City.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/City.java
deleted file mode 100644
index 74b91b5e1..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/City.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: City.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>City</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getCityWriter <em>City Writer</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getCity()
- * @model extendedMetaData="name='City' kind='elementOnly'"
- * @generated
- */
-public interface City extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getCity_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='name'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>City Writer</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>City Writer</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>City Writer</em>' reference.
- * @see #setCityWriter(Writer)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getCity_CityWriter()
- * @model resolveProxies="false" required="true"
- * annotation="teneo.jpa appinfo='\n\t\t\t\t\t\t@JoinColumn(name=\"THE_CITYWRITER_ID\")\n\t\t\t\t\t'"
- * extendedMetaData="kind='element' name='cityWriter'"
- * @generated
- */
- Writer getCityWriter();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getCityWriter <em>City Writer</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>City Writer</em>' reference.
- * @see #getCityWriter()
- * @generated
- */
- void setCityWriter(Writer value);
-
-} // City
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysFactory.java
deleted file mode 100644
index 7be7c221c..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysFactory.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage
- * @generated
- */
-public interface HbmapkeysFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- HbmapkeysFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Book</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Book</em>'.
- * @generated
- */
- Book createBook();
-
- /**
- * Returns a new object of class '<em>City</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>City</em>'.
- * @generated
- */
- City createCity();
-
- /**
- * Returns a new object of class '<em>Writer</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Writer</em>'.
- * @generated
- */
- Writer createWriter();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- HbmapkeysPackage getHbmapkeysPackage();
-
-} //HbmapkeysFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysPackage.java
deleted file mode 100644
index edf17ced0..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/HbmapkeysPackage.java
+++ /dev/null
@@ -1,571 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysPackage.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysFactory
- * @model kind="package"
- * @generated
- */
-public interface HbmapkeysPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "hbmapkeys";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/hbmapkeys";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "hbmapkeys";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- HbmapkeysPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.BookImpl <em>Book</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.BookImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getBook()
- * @generated
- */
- int BOOK = 0;
-
- /**
- * The feature id for the '<em><b>Title</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__TITLE = 0;
-
- /**
- * The feature id for the '<em><b>Writers By Name</b></em>' map.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__WRITERS_BY_NAME = 1;
-
- /**
- * The feature id for the '<em><b>City By Writer</b></em>' map.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__CITY_BY_WRITER = 2;
-
- /**
- * The number of structural features of the '<em>Book</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.CityImpl <em>City</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.CityImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getCity()
- * @generated
- */
- int CITY = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CITY__NAME = 0;
-
- /**
- * The feature id for the '<em><b>City Writer</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CITY__CITY_WRITER = 1;
-
- /**
- * The number of structural features of the '<em>City</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CITY_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.StringToWriterMapEntryImpl <em>String To Writer Map Entry</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.StringToWriterMapEntryImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getStringToWriterMapEntry()
- * @generated
- */
- int STRING_TO_WRITER_MAP_ENTRY = 2;
-
- /**
- * The feature id for the '<em><b>Key</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STRING_TO_WRITER_MAP_ENTRY__KEY = 0;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STRING_TO_WRITER_MAP_ENTRY__VALUE = 1;
-
- /**
- * The number of structural features of the '<em>String To Writer Map Entry</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STRING_TO_WRITER_MAP_ENTRY_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterImpl <em>Writer</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getWriter()
- * @generated
- */
- int WRITER = 3;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER__NAME = 0;
-
- /**
- * The number of structural features of the '<em>Writer</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterToCityMapEntryImpl <em>Writer To City Map Entry</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterToCityMapEntryImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getWriterToCityMapEntry()
- * @generated
- */
- int WRITER_TO_CITY_MAP_ENTRY = 4;
-
- /**
- * The feature id for the '<em><b>Key</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER_TO_CITY_MAP_ENTRY__KEY = 0;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER_TO_CITY_MAP_ENTRY__VALUE = 1;
-
- /**
- * The number of structural features of the '<em>Writer To City Map Entry</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER_TO_CITY_MAP_ENTRY_FEATURE_COUNT = 2;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book <em>Book</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Book</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book
- * @generated
- */
- EClass getBook();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getTitle <em>Title</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Title</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getTitle()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Title();
-
- /**
- * Returns the meta object for the map '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getWritersByName <em>Writers By Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the map '<em>Writers By Name</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getWritersByName()
- * @see #getBook()
- * @generated
- */
- EReference getBook_WritersByName();
-
- /**
- * Returns the meta object for the map '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getCityByWriter <em>City By Writer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the map '<em>City By Writer</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book#getCityByWriter()
- * @see #getBook()
- * @generated
- */
- EReference getBook_CityByWriter();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City <em>City</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>City</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City
- * @generated
- */
- EClass getCity();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getName()
- * @see #getCity()
- * @generated
- */
- EAttribute getCity_Name();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getCityWriter <em>City Writer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>City Writer</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City#getCityWriter()
- * @see #getCity()
- * @generated
- */
- EReference getCity_CityWriter();
-
- /**
- * Returns the meta object for class '{@link java.util.Map.Entry <em>String To Writer Map Entry</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>String To Writer Map Entry</em>'.
- * @see java.util.Map.Entry
- * @model keyDataType="org.eclipse.emf.ecore.xml.type.String"
- * keyExtendedMetaData="kind='attribute' name='key'"
- * valueType="org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer" valueResolveProxies="false"
- * valueExtendedMetaData="kind='attribute' name='value'"
- * extendedMetaData="name='StringToWriterMapEntry' kind='empty'"
- * @generated
- */
- EClass getStringToWriterMapEntry();
-
- /**
- * Returns the meta object for the attribute '{@link java.util.Map.Entry <em>Key</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Key</em>'.
- * @see java.util.Map.Entry
- * @see #getStringToWriterMapEntry()
- * @generated
- */
- EAttribute getStringToWriterMapEntry_Key();
-
- /**
- * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Value</em>'.
- * @see java.util.Map.Entry
- * @see #getStringToWriterMapEntry()
- * @generated
- */
- EReference getStringToWriterMapEntry_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer <em>Writer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Writer</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer
- * @generated
- */
- EClass getWriter();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer#getName()
- * @see #getWriter()
- * @generated
- */
- EAttribute getWriter_Name();
-
- /**
- * Returns the meta object for class '{@link java.util.Map.Entry <em>Writer To City Map Entry</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Writer To City Map Entry</em>'.
- * @see java.util.Map.Entry
- * @model keyType="org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer" keyResolveProxies="false"
- * keyExtendedMetaData="kind='attribute' name='key'"
- * valueType="org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City" valueResolveProxies="false"
- * valueExtendedMetaData="kind='attribute' name='value'"
- * extendedMetaData="name='WriterToCityMapEntry' kind='empty'"
- * @generated
- */
- EClass getWriterToCityMapEntry();
-
- /**
- * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Key</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Key</em>'.
- * @see java.util.Map.Entry
- * @see #getWriterToCityMapEntry()
- * @generated
- */
- EReference getWriterToCityMapEntry_Key();
-
- /**
- * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Value</em>'.
- * @see java.util.Map.Entry
- * @see #getWriterToCityMapEntry()
- * @generated
- */
- EReference getWriterToCityMapEntry_Value();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- HbmapkeysFactory getHbmapkeysFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.BookImpl <em>Book</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.BookImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getBook()
- * @generated
- */
- EClass BOOK = eINSTANCE.getBook();
-
- /**
- * The meta object literal for the '<em><b>Title</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BOOK__TITLE = eINSTANCE.getBook_Title();
-
- /**
- * The meta object literal for the '<em><b>Writers By Name</b></em>' map feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference BOOK__WRITERS_BY_NAME = eINSTANCE.getBook_WritersByName();
-
- /**
- * The meta object literal for the '<em><b>City By Writer</b></em>' map feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference BOOK__CITY_BY_WRITER = eINSTANCE.getBook_CityByWriter();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.CityImpl <em>City</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.CityImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getCity()
- * @generated
- */
- EClass CITY = eINSTANCE.getCity();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute CITY__NAME = eINSTANCE.getCity_Name();
-
- /**
- * The meta object literal for the '<em><b>City Writer</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference CITY__CITY_WRITER = eINSTANCE.getCity_CityWriter();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.StringToWriterMapEntryImpl <em>String To Writer Map Entry</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.StringToWriterMapEntryImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getStringToWriterMapEntry()
- * @generated
- */
- EClass STRING_TO_WRITER_MAP_ENTRY = eINSTANCE.getStringToWriterMapEntry();
-
- /**
- * The meta object literal for the '<em><b>Key</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute STRING_TO_WRITER_MAP_ENTRY__KEY = eINSTANCE.getStringToWriterMapEntry_Key();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference STRING_TO_WRITER_MAP_ENTRY__VALUE = eINSTANCE.getStringToWriterMapEntry_Value();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterImpl <em>Writer</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getWriter()
- * @generated
- */
- EClass WRITER = eINSTANCE.getWriter();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute WRITER__NAME = eINSTANCE.getWriter_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterToCityMapEntryImpl <em>Writer To City Map Entry</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterToCityMapEntryImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.HbmapkeysPackageImpl#getWriterToCityMapEntry()
- * @generated
- */
- EClass WRITER_TO_CITY_MAP_ENTRY = eINSTANCE.getWriterToCityMapEntry();
-
- /**
- * The meta object literal for the '<em><b>Key</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference WRITER_TO_CITY_MAP_ENTRY__KEY = eINSTANCE.getWriterToCityMapEntry_Key();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference WRITER_TO_CITY_MAP_ENTRY__VALUE = eINSTANCE.getWriterToCityMapEntry_Value();
-
- }
-
-} //HbmapkeysPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Writer.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Writer.java
deleted file mode 100644
index 5d029118b..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/Writer.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Writer.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Writer</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getWriter()
- * @model extendedMetaData="name='Writer' kind='elementOnly'"
- * @generated
- */
-public interface Writer extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#getWriter_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * annotation="teneo.jpa appinfo='\n\t\t\t\t\t\t@Column(name=\"THENAMEOFTHEWRITER\")\n\t\t\t\t\t'"
- * extendedMetaData="kind='element' name='name'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
-} // Writer
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/BookImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/BookImpl.java
deleted file mode 100644
index 13b95dea4..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/BookImpl.java
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EMap;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.ecore.util.EcoreEMap;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Book</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.BookImpl#getTitle <em>Title</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.BookImpl#getWritersByName <em>Writers By Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.BookImpl#getCityByWriter <em>City By Writer</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BookImpl extends EObjectImpl implements Book {
- /**
- * The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTitle()
- * @generated
- * @ordered
- */
- protected static final String TITLE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTitle()
- * @generated
- * @ordered
- */
- protected String title = TITLE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getWritersByName() <em>Writers By Name</em>}' map.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWritersByName()
- * @generated
- * @ordered
- */
- protected EMap<String, Writer> writersByName;
-
- /**
- * The cached value of the '{@link #getCityByWriter() <em>City By Writer</em>}' map.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCityByWriter()
- * @generated
- * @ordered
- */
- protected EMap<Writer, City> cityByWriter;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected BookImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return HbmapkeysPackage.Literals.BOOK;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTitle() {
- return title;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTitle(String newTitle) {
- String oldTitle = title;
- title = newTitle;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.BOOK__TITLE, oldTitle, title));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EMap<String, Writer> getWritersByName() {
- if (writersByName == null) {
- writersByName = new EcoreEMap<String,Writer>(HbmapkeysPackage.Literals.STRING_TO_WRITER_MAP_ENTRY, StringToWriterMapEntryImpl.class, this, HbmapkeysPackage.BOOK__WRITERS_BY_NAME);
- }
- return writersByName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EMap<Writer, City> getCityByWriter() {
- if (cityByWriter == null) {
- cityByWriter = new EcoreEMap<Writer,City>(HbmapkeysPackage.Literals.WRITER_TO_CITY_MAP_ENTRY, WriterToCityMapEntryImpl.class, this, HbmapkeysPackage.BOOK__CITY_BY_WRITER);
- }
- return cityByWriter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case HbmapkeysPackage.BOOK__WRITERS_BY_NAME:
- return ((InternalEList<?>)getWritersByName()).basicRemove(otherEnd, msgs);
- case HbmapkeysPackage.BOOK__CITY_BY_WRITER:
- return ((InternalEList<?>)getCityByWriter()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case HbmapkeysPackage.BOOK__TITLE:
- return getTitle();
- case HbmapkeysPackage.BOOK__WRITERS_BY_NAME:
- if (coreType) return getWritersByName();
- else return getWritersByName().map();
- case HbmapkeysPackage.BOOK__CITY_BY_WRITER:
- if (coreType) return getCityByWriter();
- else return getCityByWriter().map();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case HbmapkeysPackage.BOOK__TITLE:
- setTitle((String)newValue);
- return;
- case HbmapkeysPackage.BOOK__WRITERS_BY_NAME:
- ((EStructuralFeature.Setting)getWritersByName()).set(newValue);
- return;
- case HbmapkeysPackage.BOOK__CITY_BY_WRITER:
- ((EStructuralFeature.Setting)getCityByWriter()).set(newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.BOOK__TITLE:
- setTitle(TITLE_EDEFAULT);
- return;
- case HbmapkeysPackage.BOOK__WRITERS_BY_NAME:
- getWritersByName().clear();
- return;
- case HbmapkeysPackage.BOOK__CITY_BY_WRITER:
- getCityByWriter().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.BOOK__TITLE:
- return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
- case HbmapkeysPackage.BOOK__WRITERS_BY_NAME:
- return writersByName != null && !writersByName.isEmpty();
- case HbmapkeysPackage.BOOK__CITY_BY_WRITER:
- return cityByWriter != null && !cityByWriter.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (title: ");
- result.append(title);
- result.append(')');
- return result.toString();
- }
-
-} //BookImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/CityImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/CityImpl.java
deleted file mode 100644
index 7209e5be3..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/CityImpl.java
+++ /dev/null
@@ -1,210 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: CityImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>City</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.CityImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.CityImpl#getCityWriter <em>City Writer</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CityImpl extends EObjectImpl implements City {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getCityWriter() <em>City Writer</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCityWriter()
- * @generated
- * @ordered
- */
- protected Writer cityWriter;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected CityImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return HbmapkeysPackage.Literals.CITY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.CITY__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer getCityWriter() {
- return cityWriter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setCityWriter(Writer newCityWriter) {
- Writer oldCityWriter = cityWriter;
- cityWriter = newCityWriter;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.CITY__CITY_WRITER, oldCityWriter, cityWriter));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case HbmapkeysPackage.CITY__NAME:
- return getName();
- case HbmapkeysPackage.CITY__CITY_WRITER:
- return getCityWriter();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case HbmapkeysPackage.CITY__NAME:
- setName((String)newValue);
- return;
- case HbmapkeysPackage.CITY__CITY_WRITER:
- setCityWriter((Writer)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.CITY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case HbmapkeysPackage.CITY__CITY_WRITER:
- setCityWriter((Writer)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.CITY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case HbmapkeysPackage.CITY__CITY_WRITER:
- return cityWriter != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //CityImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysFactoryImpl.java
deleted file mode 100644
index e206f321a..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysFactoryImpl.java
+++ /dev/null
@@ -1,145 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysFactoryImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl;
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class HbmapkeysFactoryImpl extends EFactoryImpl implements HbmapkeysFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static HbmapkeysFactory init() {
- try {
- HbmapkeysFactory theHbmapkeysFactory = (HbmapkeysFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/hbmapkeys");
- if (theHbmapkeysFactory != null) {
- return theHbmapkeysFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new HbmapkeysFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HbmapkeysFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case HbmapkeysPackage.BOOK: return createBook();
- case HbmapkeysPackage.CITY: return createCity();
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY: return (EObject)createStringToWriterMapEntry();
- case HbmapkeysPackage.WRITER: return createWriter();
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY: return (EObject)createWriterToCityMapEntry();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Book createBook() {
- BookImpl book = new BookImpl();
- return book;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public City createCity() {
- CityImpl city = new CityImpl();
- return city;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Map.Entry<String, Writer> createStringToWriterMapEntry() {
- StringToWriterMapEntryImpl stringToWriterMapEntry = new StringToWriterMapEntryImpl();
- return stringToWriterMapEntry;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer createWriter() {
- WriterImpl writer = new WriterImpl();
- return writer;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Map.Entry<Writer, City> createWriterToCityMapEntry() {
- WriterToCityMapEntryImpl writerToCityMapEntry = new WriterToCityMapEntryImpl();
- return writerToCityMapEntry;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HbmapkeysPackage getHbmapkeysPackage() {
- return (HbmapkeysPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static HbmapkeysPackage getPackage() {
- return HbmapkeysPackage.eINSTANCE;
- }
-
-} //HbmapkeysFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysPackageImpl.java
deleted file mode 100644
index 563330c51..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/HbmapkeysPackageImpl.java
+++ /dev/null
@@ -1,535 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysPackageImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl;
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class HbmapkeysPackageImpl extends EPackageImpl implements HbmapkeysPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass bookEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass cityEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass stringToWriterMapEntryEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass writerEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass writerToCityMapEntryEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private HbmapkeysPackageImpl() {
- super(eNS_URI, HbmapkeysFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static HbmapkeysPackage init() {
- if (isInited) return (HbmapkeysPackage)EPackage.Registry.INSTANCE.getEPackage(HbmapkeysPackage.eNS_URI);
-
- // Obtain or create and register package
- HbmapkeysPackageImpl theHbmapkeysPackage = (HbmapkeysPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof HbmapkeysPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new HbmapkeysPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theHbmapkeysPackage.createPackageContents();
-
- // Initialize created meta-data
- theHbmapkeysPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theHbmapkeysPackage.freeze();
-
- return theHbmapkeysPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getBook() {
- return bookEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBook_Title() {
- return (EAttribute)bookEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getBook_WritersByName() {
- return (EReference)bookEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getBook_CityByWriter() {
- return (EReference)bookEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getCity() {
- return cityEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCity_Name() {
- return (EAttribute)cityEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getCity_CityWriter() {
- return (EReference)cityEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getStringToWriterMapEntry() {
- return stringToWriterMapEntryEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getStringToWriterMapEntry_Key() {
- return (EAttribute)stringToWriterMapEntryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getStringToWriterMapEntry_Value() {
- return (EReference)stringToWriterMapEntryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getWriter() {
- return writerEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getWriter_Name() {
- return (EAttribute)writerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getWriterToCityMapEntry() {
- return writerToCityMapEntryEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWriterToCityMapEntry_Key() {
- return (EReference)writerToCityMapEntryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWriterToCityMapEntry_Value() {
- return (EReference)writerToCityMapEntryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HbmapkeysFactory getHbmapkeysFactory() {
- return (HbmapkeysFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- bookEClass = createEClass(BOOK);
- createEAttribute(bookEClass, BOOK__TITLE);
- createEReference(bookEClass, BOOK__WRITERS_BY_NAME);
- createEReference(bookEClass, BOOK__CITY_BY_WRITER);
-
- cityEClass = createEClass(CITY);
- createEAttribute(cityEClass, CITY__NAME);
- createEReference(cityEClass, CITY__CITY_WRITER);
-
- stringToWriterMapEntryEClass = createEClass(STRING_TO_WRITER_MAP_ENTRY);
- createEAttribute(stringToWriterMapEntryEClass, STRING_TO_WRITER_MAP_ENTRY__KEY);
- createEReference(stringToWriterMapEntryEClass, STRING_TO_WRITER_MAP_ENTRY__VALUE);
-
- writerEClass = createEClass(WRITER);
- createEAttribute(writerEClass, WRITER__NAME);
-
- writerToCityMapEntryEClass = createEClass(WRITER_TO_CITY_MAP_ENTRY);
- createEReference(writerToCityMapEntryEClass, WRITER_TO_CITY_MAP_ENTRY__KEY);
- createEReference(writerToCityMapEntryEClass, WRITER_TO_CITY_MAP_ENTRY__VALUE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBook_Title(), theXMLTypePackage.getString(), "title", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBook_WritersByName(), this.getStringToWriterMapEntry(), null, "writersByName", null, 0, -1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBook_CityByWriter(), this.getWriterToCityMapEntry(), null, "cityByWriter", null, 0, -1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(cityEClass, City.class, "City", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getCity_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, City.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getCity_CityWriter(), this.getWriter(), null, "cityWriter", null, 1, 1, City.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(stringToWriterMapEntryEClass, Map.Entry.class, "StringToWriterMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getStringToWriterMapEntry_Key(), theXMLTypePackage.getString(), "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getStringToWriterMapEntry_Value(), this.getWriter(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getWriter_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(writerToCityMapEntryEClass, Map.Entry.class, "WriterToCityMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
- initEReference(getWriterToCityMapEntry_Key(), this.getWriter(), null, "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWriterToCityMapEntry_Value(), this.getCity(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- // teneo.jpa
- createTeneoAnnotations();
- }
-
- /**
- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createExtendedMetaDataAnnotations() {
- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
- addAnnotation
- (bookEClass,
- source,
- new String[] {
- "name", "Book",
- "kind", "elementOnly"
- });
- addAnnotation
- (getBook_Title(),
- source,
- new String[] {
- "kind", "element",
- "name", "title"
- });
- addAnnotation
- (getBook_WritersByName(),
- source,
- new String[] {
- "kind", "element",
- "name", "writersByName"
- });
- addAnnotation
- (getBook_CityByWriter(),
- source,
- new String[] {
- "kind", "element",
- "name", "cityByWriter"
- });
- addAnnotation
- (cityEClass,
- source,
- new String[] {
- "name", "City",
- "kind", "elementOnly"
- });
- addAnnotation
- (getCity_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (getCity_CityWriter(),
- source,
- new String[] {
- "kind", "element",
- "name", "cityWriter"
- });
- addAnnotation
- (stringToWriterMapEntryEClass,
- source,
- new String[] {
- "name", "StringToWriterMapEntry",
- "kind", "empty"
- });
- addAnnotation
- (getStringToWriterMapEntry_Key(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "key"
- });
- addAnnotation
- (getStringToWriterMapEntry_Value(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "value"
- });
- addAnnotation
- (writerEClass,
- source,
- new String[] {
- "name", "Writer",
- "kind", "elementOnly"
- });
- addAnnotation
- (getWriter_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (writerToCityMapEntryEClass,
- source,
- new String[] {
- "name", "WriterToCityMapEntry",
- "kind", "empty"
- });
- addAnnotation
- (getWriterToCityMapEntry_Key(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "key"
- });
- addAnnotation
- (getWriterToCityMapEntry_Value(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "value"
- });
- }
-
- /**
- * Initializes the annotations for <b>teneo.jpa</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.jpa";
- addAnnotation
- (getBook_WritersByName(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t\t@HbMapKey(columns=@Column(name=\"THENAMEOFTHEWRITER\"))\n\t\t\t\t\t\t@JoinColumn(name=\"JOIN_COLUMN_WRITER\")\n\t\t\t\t\t"
- });
- addAnnotation
- (getBook_CityByWriter(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t\t@MapKeyManyToMany(targetEntity=\"Writer\", joinColumns=@JoinColumn(name=\"THE_CITYWRITER_ID\"))\n\t\t\t\t\t\t@JoinColumn(name=\"JOIN_COLUMN_CITY\")\n\t\t\t\t\t"
- });
- addAnnotation
- (getCity_CityWriter(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t\t@JoinColumn(name=\"THE_CITYWRITER_ID\")\n\t\t\t\t\t"
- });
- addAnnotation
- (getWriter_Name(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t\t@Column(name=\"THENAMEOFTHEWRITER\")\n\t\t\t\t\t"
- });
- }
-
-} //HbmapkeysPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/StringToWriterMapEntryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/StringToWriterMapEntryImpl.java
deleted file mode 100644
index d8b310cd7..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/StringToWriterMapEntryImpl.java
+++ /dev/null
@@ -1,291 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: StringToWriterMapEntryImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.BasicEMap;
-import org.eclipse.emf.common.util.EMap;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>String To Writer Map Entry</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.StringToWriterMapEntryImpl#getTypedKey <em>Key</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.StringToWriterMapEntryImpl#getTypedValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class StringToWriterMapEntryImpl extends EObjectImpl implements BasicEMap.Entry<String,Writer> {
- /**
- * The default value of the '{@link #getTypedKey() <em>Key</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypedKey()
- * @generated
- * @ordered
- */
- protected static final String KEY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTypedKey() <em>Key</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypedKey()
- * @generated
- * @ordered
- */
- protected String key = KEY_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypedValue()
- * @generated
- * @ordered
- */
- protected Writer value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected StringToWriterMapEntryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return HbmapkeysPackage.Literals.STRING_TO_WRITER_MAP_ENTRY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTypedKey() {
- return key;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTypedKey(String newKey) {
- String oldKey = key;
- key = newKey;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__KEY, oldKey, key));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer getTypedValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTypedValue(Writer newValue) {
- Writer oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__KEY:
- return getTypedKey();
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__VALUE:
- return getTypedValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__KEY:
- setTypedKey((String)newValue);
- return;
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__VALUE:
- setTypedValue((Writer)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__KEY:
- setTypedKey(KEY_EDEFAULT);
- return;
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__VALUE:
- setTypedValue((Writer)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__KEY:
- return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY__VALUE:
- return value != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (key: ");
- result.append(key);
- result.append(')');
- return result.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected int hash = -1;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getHash() {
- if (hash == -1) {
- Object theKey = getKey();
- hash = (theKey == null ? 0 : theKey.hashCode());
- }
- return hash;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHash(int hash) {
- this.hash = hash;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getKey() {
- return getTypedKey();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setKey(String key) {
- setTypedKey(key);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer getValue() {
- return getTypedValue();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer setValue(Writer value) {
- Writer oldValue = getValue();
- setTypedValue(value);
- return oldValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EMap<String, Writer> getEMap() {
- EObject container = eContainer();
- return container == null ? null : (EMap<String, Writer>)container.eGet(eContainmentFeature());
- }
-
-} //StringToWriterMapEntryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterImpl.java
deleted file mode 100644
index 544b50196..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterImpl.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: WriterImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Writer</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class WriterImpl extends EObjectImpl implements Writer {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WriterImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return HbmapkeysPackage.Literals.WRITER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.WRITER__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER__NAME:
- return getName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER__NAME:
- setName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //WriterImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterToCityMapEntryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterToCityMapEntryImpl.java
deleted file mode 100644
index 5ec54576b..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/impl/WriterToCityMapEntryImpl.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: WriterToCityMapEntryImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.BasicEMap;
-import org.eclipse.emf.common.util.EMap;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Writer To City Map Entry</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterToCityMapEntryImpl#getTypedKey <em>Key</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.impl.WriterToCityMapEntryImpl#getTypedValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class WriterToCityMapEntryImpl extends EObjectImpl implements BasicEMap.Entry<Writer,City> {
- /**
- * The cached value of the '{@link #getTypedKey() <em>Key</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypedKey()
- * @generated
- * @ordered
- */
- protected Writer key;
-
- /**
- * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypedValue()
- * @generated
- * @ordered
- */
- protected City value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WriterToCityMapEntryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return HbmapkeysPackage.Literals.WRITER_TO_CITY_MAP_ENTRY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer getTypedKey() {
- return key;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTypedKey(Writer newKey) {
- Writer oldKey = key;
- key = newKey;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__KEY, oldKey, key));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public City getTypedValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTypedValue(City newValue) {
- City oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__KEY:
- return getTypedKey();
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__VALUE:
- return getTypedValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__KEY:
- setTypedKey((Writer)newValue);
- return;
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__VALUE:
- setTypedValue((City)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__KEY:
- setTypedKey((Writer)null);
- return;
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__VALUE:
- setTypedValue((City)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__KEY:
- return key != null;
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY__VALUE:
- return value != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected int hash = -1;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getHash() {
- if (hash == -1) {
- Object theKey = getKey();
- hash = (theKey == null ? 0 : theKey.hashCode());
- }
- return hash;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHash(int hash) {
- this.hash = hash;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer getKey() {
- return getTypedKey();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setKey(Writer key) {
- setTypedKey(key);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public City getValue() {
- return getTypedValue();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public City setValue(City value) {
- City oldValue = getValue();
- setTypedValue(value);
- return oldValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EMap<Writer, City> getEMap() {
- EObject container = eContainer();
- return container == null ? null : (EMap<Writer, City>)container.eGet(eContainmentFeature());
- }
-
-} //WriterToCityMapEntryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.ecore
deleted file mode 100644
index cbf900ef6..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.ecore
+++ /dev/null
@@ -1,114 +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="hbmapkeys"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hbmapkeys" nsPrefix="hbmapkeys">
- <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" 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:EReference" name="writersByName" upperBound="-1"
- eType="#//StringToWriterMapEntry" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@HbMapKey(columns=@Column(name=&quot;THENAMEOFTHEWRITER&quot;))&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@JoinColumn(name=&quot;JOIN_COLUMN_WRITER&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="writersByName"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="cityByWriter" upperBound="-1"
- eType="#//WriterToCityMapEntry" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@MapKeyManyToMany(targetEntity=&quot;Writer&quot;, joinColumns=@JoinColumn(name=&quot;THE_CITYWRITER_ID&quot;))&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@JoinColumn(name=&quot;JOIN_COLUMN_CITY&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="cityByWriter"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="City">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="City"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" 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="cityWriter" lowerBound="1"
- eType="#//Writer" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@JoinColumn(name=&quot;THE_CITYWRITER_ID&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="cityWriter"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="StringToWriterMapEntry" instanceClassName="java.util.Map$Entry">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="StringToWriterMapEntry"/>
- <details key="kind" value="empty"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="key"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Writer"
- resolveProxies="false">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="value"/>
- </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" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@Column(name=&quot;THENAMEOFTHEWRITER&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="WriterToCityMapEntry" instanceClassName="java.util.Map$Entry">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="WriterToCityMapEntry"/>
- <details key="kind" value="empty"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="key" eType="#//Writer"
- resolveProxies="false">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="key"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//City"
- resolveProxies="false">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="value"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.genmodel
deleted file mode 100644
index f4033f112..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.genmodel
+++ /dev/null
@@ -1,31 +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="Hbmapkeys" importerID="org.eclipse.xsd.ecore.importer"
- complianceLevel="5.0" copyrightFields="false">
- <foreignModel>hbmapkeys.xsd</foreignModel>
- <genPackages prefix="Hbmapkeys" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="hbmapkeys.ecore#/">
- <genClasses ecoreClass="hbmapkeys.ecore#//Book">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbmapkeys.ecore#//Book/title"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference hbmapkeys.ecore#//Book/writersByName"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference hbmapkeys.ecore#//Book/cityByWriter"/>
- </genClasses>
- <genClasses ecoreClass="hbmapkeys.ecore#//City">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbmapkeys.ecore#//City/name"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference hbmapkeys.ecore#//City/cityWriter"/>
- </genClasses>
- <genClasses ecoreClass="hbmapkeys.ecore#//StringToWriterMapEntry">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbmapkeys.ecore#//StringToWriterMapEntry/key"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference hbmapkeys.ecore#//StringToWriterMapEntry/value"/>
- </genClasses>
- <genClasses ecoreClass="hbmapkeys.ecore#//Writer">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbmapkeys.ecore#//Writer/name"/>
- </genClasses>
- <genClasses ecoreClass="hbmapkeys.ecore#//WriterToCityMapEntry">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference hbmapkeys.ecore#//WriterToCityMapEntry/key"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference hbmapkeys.ecore#//WriterToCityMapEntry/value"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.xsd
deleted file mode 100644
index 5b7f8120f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/model/hbmapkeys.xsd
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hbmapkeys"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hbmapkeys">
- <xsd:complexType name="Book">
- <xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
- <xsd:element maxOccurs="unbounded" minOccurs="0" name="writersByName" type="StringToWriterMapEntry">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">
- @HbMapKey(columns=@Column(name="THENAMEOFTHEWRITER"))
- @JoinColumn(name="JOIN_COLUMN_WRITER")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- <xsd:element maxOccurs="unbounded" minOccurs="0" name="cityByWriter" type="WriterToCityMapEntry">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">
- @MapKeyManyToMany(targetEntity="Writer", joinColumns=@JoinColumn(name="THE_CITYWRITER_ID"))
- @JoinColumn(name="JOIN_COLUMN_CITY")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="Writer">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">
- @Column(name="THENAMEOFTHEWRITER")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="City">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element name="cityWriter" type="xsd:IDREF" ecore:reference="Writer">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">
- @JoinColumn(name="THE_CITYWRITER_ID")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType ecore:instanceClass="java.util.Map$Entry" name="StringToWriterMapEntry">
- <xsd:attribute name="key" type="xsd:string" />
- <xsd:attribute name="value" type="xsd:IDREF" ecore:reference="Writer" />
- </xsd:complexType>
- <xsd:complexType ecore:instanceClass="java.util.Map$Entry" name="WriterToCityMapEntry">
- <xsd:attribute name="key" type="xsd:IDREF" ecore:reference="Writer" />
- <xsd:attribute name="value" type="xsd:IDREF" ecore:reference="City" />
- </xsd:complexType>
-</xsd:schema> \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysAdapterFactory.java
deleted file mode 100644
index 5acdae08d..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysAdapterFactory.java
+++ /dev/null
@@ -1,198 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysAdapterFactory.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.util;
-
-import java.util.Map;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage
- * @generated
- */
-public class HbmapkeysAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static HbmapkeysPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HbmapkeysAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = HbmapkeysPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected HbmapkeysSwitch<Adapter> modelSwitch =
- new HbmapkeysSwitch<Adapter>() {
- @Override
- public Adapter caseBook(Book object) {
- return createBookAdapter();
- }
- @Override
- public Adapter caseCity(City object) {
- return createCityAdapter();
- }
- @Override
- public Adapter caseStringToWriterMapEntry(Map.Entry<String, Writer> object) {
- return createStringToWriterMapEntryAdapter();
- }
- @Override
- public Adapter caseWriter(Writer object) {
- return createWriterAdapter();
- }
- @Override
- public Adapter caseWriterToCityMapEntry(Map.Entry<Writer, City> object) {
- return createWriterToCityMapEntryAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book <em>Book</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Book
- * @generated
- */
- public Adapter createBookAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City <em>City</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.City
- * @generated
- */
- public Adapter createCityAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>String To Writer Map Entry</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see java.util.Map.Entry
- * @generated
- */
- public Adapter createStringToWriterMapEntryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer <em>Writer</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.Writer
- * @generated
- */
- public Adapter createWriterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>Writer To City Map Entry</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see java.util.Map.Entry
- * @generated
- */
- public Adapter createWriterToCityMapEntryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //HbmapkeysAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceFactoryImpl.java
deleted file mode 100644
index ff6f1af46..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysResourceFactoryImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.resource.Resource;
-
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-
-import org.eclipse.emf.ecore.xmi.XMLResource;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.util.HbmapkeysResourceImpl
- * @generated
- */
-public class HbmapkeysResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HbmapkeysResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new HbmapkeysResourceImpl(uri);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-
- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
- return result;
- }
-
-} //HbmapkeysResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceImpl.java
deleted file mode 100644
index b8df9ca27..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysResourceImpl.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.util.HbmapkeysResourceFactoryImpl
- * @generated
- */
-public class HbmapkeysResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public HbmapkeysResourceImpl(URI uri) {
- super(uri);
- }
-
-} //HbmapkeysResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysSwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysSwitch.java
deleted file mode 100644
index 96888d61c..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysSwitch.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysSwitch.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.util;
-
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage
- * @generated
- */
-public class HbmapkeysSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static HbmapkeysPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HbmapkeysSwitch() {
- if (modelPackage == null) {
- modelPackage = HbmapkeysPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case HbmapkeysPackage.BOOK: {
- Book book = (Book)theEObject;
- T result = caseBook(book);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case HbmapkeysPackage.CITY: {
- City city = (City)theEObject;
- T result = caseCity(city);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case HbmapkeysPackage.STRING_TO_WRITER_MAP_ENTRY: {
- @SuppressWarnings("unchecked") Map.Entry<String, Writer> stringToWriterMapEntry = (Map.Entry<String, Writer>)theEObject;
- T result = caseStringToWriterMapEntry(stringToWriterMapEntry);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case HbmapkeysPackage.WRITER: {
- Writer writer = (Writer)theEObject;
- T result = caseWriter(writer);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case HbmapkeysPackage.WRITER_TO_CITY_MAP_ENTRY: {
- @SuppressWarnings("unchecked") Map.Entry<Writer, City> writerToCityMapEntry = (Map.Entry<Writer, City>)theEObject;
- T result = caseWriterToCityMapEntry(writerToCityMapEntry);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Book</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Book</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBook(Book object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>City</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>City</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCity(City object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>String To Writer Map Entry</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>String To Writer Map Entry</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStringToWriterMapEntry(Map.Entry<String, Writer> object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Writer</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Writer</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseWriter(Writer object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Writer To City Map Entry</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Writer To City Map Entry</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseWriterToCityMapEntry(Map.Entry<Writer, City> object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //HbmapkeysSwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysXMLProcessor.java
deleted file mode 100644
index 0fb667325..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hbmapkeys/util/HbmapkeysXMLProcessor.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HbmapkeysXMLProcessor.java,v 1.1 2008/07/06 16:25:35 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.util;
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.resource.Resource;
-
-import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hbmapkeys.HbmapkeysPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class HbmapkeysXMLProcessor extends XMLProcessor {
-
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HbmapkeysXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- HbmapkeysPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the HbmapkeysResourceFactoryImpl factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected Map<String, Resource.Factory> getRegistrations() {
- if (registrations == null) {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new HbmapkeysResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new HbmapkeysResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //HbmapkeysXMLProcessor

Back to the top