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/hb/generator')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdFactory.java64
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdPackage.java317
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdentityID.java83
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/SimpleID.java141
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/TableID.java83
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdFactoryImpl.java123
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdPackageImpl.java378
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdentityIDImpl.java201
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/SimpleIDImpl.java291
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/TableIDImpl.java201
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore68
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore_diagram7
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.genmodel21
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.xsd57
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdAdapterFactory.java160
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdSwitch.java172
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdXMLProcessor.java52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/IdentityIDValidator.java20
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/SimpleIDValidator.java29
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/TableIDValidator.java20
22 files changed, 0 insertions, 2576 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdFactory.java
deleted file mode 100644
index 1135a6f36..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdFactory.java,v 1.1 2006/08/31 22:47:46 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id;
-
-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.hb.generator.id.IdPackage
- * @generated
- */
-public interface IdFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- IdFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Identity ID</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Identity ID</em>'.
- * @generated
- */
- IdentityID createIdentityID();
-
- /**
- * Returns a new object of class '<em>Simple ID</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Simple ID</em>'.
- * @generated
- */
- SimpleID createSimpleID();
-
- /**
- * Returns a new object of class '<em>Table ID</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Table ID</em>'.
- * @generated
- */
- TableID createTableID();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- IdPackage getIdPackage();
-
-} //IdFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdPackage.java
deleted file mode 100644
index be1f23742..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdPackage.java
+++ /dev/null
@@ -1,317 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdPackage.java,v 1.4 2007/08/10 16:41:10 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-
-/**
- * <!-- 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.hb.generator.id.IdFactory
- * @model kind="package"
- * annotation="teneo.hibernate appinfo='\n\t\t\t@GenericGenerator(name=\"system-uuid\", strategy = \"uuid\")\n\t\t\t@GenericGenerator(name=\"hibseq\", strategy = \"hilo\", parameters = {\n\t\t\t@Parameter(name=\"table\", value = \"hilo_table\"), @Parameter(name=\"column\",\n\t\t\tvalue=\"the_hilo_column\") } )\n\t\t'"
- * @generated
- */
-public interface IdPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "id";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "id";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- IdPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl <em>Identity ID</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdPackageImpl#getIdentityID()
- * @generated
- */
- int IDENTITY_ID = 0;
-
- /**
- * The feature id for the '<em><b>Myid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IDENTITY_ID__MYID = 0;
-
- /**
- * The number of structural features of the '<em>Identity ID</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IDENTITY_ID_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl <em>Simple ID</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdPackageImpl#getSimpleID()
- * @generated
- */
- int SIMPLE_ID = 1;
-
- /**
- * The feature id for the '<em><b>Auto ID</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIMPLE_ID__AUTO_ID = 0;
-
- /**
- * The feature id for the '<em><b>Generated</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIMPLE_ID__GENERATED = 1;
-
- /**
- * The number of structural features of the '<em>Simple ID</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIMPLE_ID_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl <em>Table ID</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdPackageImpl#getTableID()
- * @generated
- */
- int TABLE_ID = 2;
-
- /**
- * The feature id for the '<em><b>Myid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TABLE_ID__MYID = 0;
-
- /**
- * The number of structural features of the '<em>Table ID</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TABLE_ID_FEATURE_COUNT = 1;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID <em>Identity ID</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Identity ID</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID
- * @generated
- */
- EClass getIdentityID();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID#getMyid <em>Myid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Myid</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID#getMyid()
- * @see #getIdentityID()
- * @generated
- */
- EAttribute getIdentityID_Myid();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID <em>Simple ID</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Simple ID</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID
- * @generated
- */
- EClass getSimpleID();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getAutoID <em>Auto ID</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Auto ID</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getAutoID()
- * @see #getSimpleID()
- * @generated
- */
- EAttribute getSimpleID_AutoID();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getGenerated <em>Generated</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Generated</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getGenerated()
- * @see #getSimpleID()
- * @generated
- */
- EAttribute getSimpleID_Generated();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID <em>Table ID</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Table ID</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID
- * @generated
- */
- EClass getTableID();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID#getMyid <em>Myid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Myid</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID#getMyid()
- * @see #getTableID()
- * @generated
- */
- EAttribute getTableID_Myid();
-
- /**
- * 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
- */
- IdFactory getIdFactory();
-
- /**
- * <!-- 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.hb.generator.id.impl.IdentityIDImpl <em>Identity ID</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdPackageImpl#getIdentityID()
- * @generated
- */
- EClass IDENTITY_ID = eINSTANCE.getIdentityID();
-
- /**
- * The meta object literal for the '<em><b>Myid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IDENTITY_ID__MYID = eINSTANCE.getIdentityID_Myid();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl <em>Simple ID</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdPackageImpl#getSimpleID()
- * @generated
- */
- EClass SIMPLE_ID = eINSTANCE.getSimpleID();
-
- /**
- * The meta object literal for the '<em><b>Auto ID</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SIMPLE_ID__AUTO_ID = eINSTANCE.getSimpleID_AutoID();
-
- /**
- * The meta object literal for the '<em><b>Generated</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SIMPLE_ID__GENERATED = eINSTANCE.getSimpleID_Generated();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl <em>Table ID</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdPackageImpl#getTableID()
- * @generated
- */
- EClass TABLE_ID = eINSTANCE.getTableID();
-
- /**
- * The meta object literal for the '<em><b>Myid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute TABLE_ID__MYID = eINSTANCE.getTableID_Myid();
-
- }
-
-} //IdPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdentityID.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdentityID.java
deleted file mode 100644
index 2266c7c5d..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/IdentityID.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdentityID.java,v 1.3 2007/08/10 16:41:10 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Identity ID</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID#getMyid <em>Myid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage#getIdentityID()
- * @model extendedMetaData="name='IdentityID' kind='elementOnly'"
- * @generated
- */
-public interface IdentityID extends EObject {
- /**
- * Returns the value of the '<em><b>Myid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Myid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Myid</em>' attribute.
- * @see #isSetMyid()
- * @see #unsetMyid()
- * @see #setMyid(long)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage#getIdentityID_Myid()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
- * annotation="teneo.hibernate appinfo='\n\t\t\t\t\t\t@Id @GeneratedValue(strategy=\"IDENTITY\")\n\t\t\t\t\t'"
- * extendedMetaData="kind='element' name='myid'"
- * @generated
- */
- long getMyid();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID#getMyid <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Myid</em>' attribute.
- * @see #isSetMyid()
- * @see #unsetMyid()
- * @see #getMyid()
- * @generated
- */
- void setMyid(long value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID#getMyid <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetMyid()
- * @see #getMyid()
- * @see #setMyid(long)
- * @generated
- */
- void unsetMyid();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID#getMyid <em>Myid</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>Myid</em>' attribute is set.
- * @see #unsetMyid()
- * @see #getMyid()
- * @see #setMyid(long)
- * @generated
- */
- boolean isSetMyid();
-
-} // IdentityID \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/SimpleID.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/SimpleID.java
deleted file mode 100644
index d926ed197..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/SimpleID.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SimpleID.java,v 1.5 2009/02/25 20:08:39 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id;
-
-import java.util.Date;
-import javax.xml.datatype.XMLGregorianCalendar;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Simple ID</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getAutoID <em>Auto ID</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getGenerated <em>Generated</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage#getSimpleID()
- * @model extendedMetaData="name='SimpleID' kind='elementOnly'"
- * @generated
- */
-public interface SimpleID extends EObject {
- /**
- * Returns the value of the '<em><b>Auto ID</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Auto ID</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Auto ID</em>' attribute.
- * @see #isSetAutoID()
- * @see #unsetAutoID()
- * @see #setAutoID(long)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage#getSimpleID_AutoID()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long"
- * annotation="teneo.hibernate appinfo='\n\t\t\t\t\t\t@Id @GeneratedValue @Column(name=\"AUTOD\")\n\t\t\t\t\t'"
- * extendedMetaData="kind='element' name='autoID'"
- * @generated
- */
- long getAutoID();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getAutoID <em>Auto ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Auto ID</em>' attribute.
- * @see #isSetAutoID()
- * @see #unsetAutoID()
- * @see #getAutoID()
- * @generated
- */
- void setAutoID(long value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getAutoID <em>Auto ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetAutoID()
- * @see #getAutoID()
- * @see #setAutoID(long)
- * @generated
- */
- void unsetAutoID();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getAutoID <em>Auto ID</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>Auto ID</em>' attribute is set.
- * @see #unsetAutoID()
- * @see #getAutoID()
- * @see #setAutoID(long)
- * @generated
- */
- boolean isSetAutoID();
-
- /**
- * Returns the value of the '<em><b>Generated</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Generated</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Generated</em>' attribute.
- * @see #isSetGenerated()
- * @see #unsetGenerated()
- * @see #setGenerated(long)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage#getSimpleID_Generated()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
- * annotation="teneo.hibernate appinfo='@Version @Generated(ALWAYS)'"
- * extendedMetaData="kind='element' name='generated'"
- * @generated
- */
- long getGenerated();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getGenerated <em>Generated</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Generated</em>' attribute.
- * @see #isSetGenerated()
- * @see #unsetGenerated()
- * @see #getGenerated()
- * @generated
- */
- void setGenerated(long value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getGenerated <em>Generated</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetGenerated()
- * @see #getGenerated()
- * @see #setGenerated(long)
- * @generated
- */
- void unsetGenerated();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID#getGenerated <em>Generated</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>Generated</em>' attribute is set.
- * @see #unsetGenerated()
- * @see #getGenerated()
- * @see #setGenerated(long)
- * @generated
- */
- boolean isSetGenerated();
-
-} // SimpleID \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/TableID.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/TableID.java
deleted file mode 100644
index c1b44e3bf..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/TableID.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: TableID.java,v 1.3 2007/08/10 16:41:10 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Table ID</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID#getMyid <em>Myid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage#getTableID()
- * @model extendedMetaData="name='TableID' kind='elementOnly'"
- * @generated
- */
-public interface TableID extends EObject {
- /**
- * Returns the value of the '<em><b>Myid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Myid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Myid</em>' attribute.
- * @see #isSetMyid()
- * @see #unsetMyid()
- * @see #setMyid(long)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage#getTableID_Myid()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
- * annotation="teneo.hibernate appinfo='\n\t\t\t\t\t\t@Id @GeneratedValue(generator=\"hibseq\")\n\t\t\t\t\t'"
- * extendedMetaData="kind='element' name='myid'"
- * @generated
- */
- long getMyid();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID#getMyid <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Myid</em>' attribute.
- * @see #isSetMyid()
- * @see #unsetMyid()
- * @see #getMyid()
- * @generated
- */
- void setMyid(long value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID#getMyid <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetMyid()
- * @see #getMyid()
- * @see #setMyid(long)
- * @generated
- */
- void unsetMyid();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID#getMyid <em>Myid</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>Myid</em>' attribute is set.
- * @see #unsetMyid()
- * @see #getMyid()
- * @see #setMyid(long)
- * @generated
- */
- boolean isSetMyid();
-
-} // TableID \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdFactoryImpl.java
deleted file mode 100644
index e45b1b14f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdFactoryImpl.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdFactoryImpl.java,v 1.3 2007/08/10 16:41:10 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl;
-
-import java.util.Date;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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.hb.generator.id.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class IdFactoryImpl extends EFactoryImpl implements IdFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static IdFactory init() {
- try {
- IdFactory theIdFactory = (IdFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id");
- if (theIdFactory != null) {
- return theIdFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new IdFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case IdPackage.IDENTITY_ID: return createIdentityID();
- case IdPackage.SIMPLE_ID: return createSimpleID();
- case IdPackage.TABLE_ID: return createTableID();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdentityID createIdentityID() {
- IdentityIDImpl identityID = new IdentityIDImpl();
- return identityID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SimpleID createSimpleID() {
- SimpleIDImpl simpleID = new SimpleIDImpl();
- return simpleID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TableID createTableID() {
- TableIDImpl tableID = new TableIDImpl();
- return tableID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdPackage getIdPackage() {
- return (IdPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static IdPackage getPackage() {
- return IdPackage.eINSTANCE;
- }
-
-} //IdFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdPackageImpl.java
deleted file mode 100644
index f4d315420..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdPackageImpl.java
+++ /dev/null
@@ -1,378 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdPackageImpl.java,v 1.7 2009/02/25 20:08:39 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl;
-
-import java.util.Date;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID;
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID;
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class IdPackageImpl extends EPackageImpl implements IdPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass identityIDEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass simpleIDEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass tableIDEClass = 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.hb.generator.id.IdPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private IdPackageImpl() {
- super(eNS_URI, IdFactory.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 IdPackage init() {
- if (isInited) return (IdPackage)EPackage.Registry.INSTANCE.getEPackage(IdPackage.eNS_URI);
-
- // Obtain or create and register package
- IdPackageImpl theIdPackage = (IdPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof IdPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new IdPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theIdPackage.createPackageContents();
-
- // Initialize created meta-data
- theIdPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theIdPackage.freeze();
-
- return theIdPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIdentityID() {
- return identityIDEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIdentityID_Myid() {
- return (EAttribute)identityIDEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getSimpleID() {
- return simpleIDEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSimpleID_AutoID() {
- return (EAttribute)simpleIDEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSimpleID_Generated() {
- return (EAttribute)simpleIDEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getTableID() {
- return tableIDEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getTableID_Myid() {
- return (EAttribute)tableIDEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdFactory getIdFactory() {
- return (IdFactory)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
- identityIDEClass = createEClass(IDENTITY_ID);
- createEAttribute(identityIDEClass, IDENTITY_ID__MYID);
-
- simpleIDEClass = createEClass(SIMPLE_ID);
- createEAttribute(simpleIDEClass, SIMPLE_ID__AUTO_ID);
- createEAttribute(simpleIDEClass, SIMPLE_ID__GENERATED);
-
- tableIDEClass = createEClass(TABLE_ID);
- createEAttribute(tableIDEClass, TABLE_ID__MYID);
- }
-
- /**
- * <!-- 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(identityIDEClass, IdentityID.class, "IdentityID", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getIdentityID_Myid(), theXMLTypePackage.getLong(), "myid", null, 1, 1, IdentityID.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(simpleIDEClass, SimpleID.class, "SimpleID", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSimpleID_AutoID(), theXMLTypePackage.getLong(), "autoID", null, 0, 1, SimpleID.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSimpleID_Generated(), theXMLTypePackage.getLong(), "generated", null, 1, 1, SimpleID.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(tableIDEClass, TableID.class, "TableID", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTableID_Myid(), theXMLTypePackage.getLong(), "myid", null, 1, 1, TableID.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // teneo.hibernate
- createTeneoAnnotations();
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- }
-
- /**
- * Initializes the annotations for <b>teneo.hibernate</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.hibernate";
- addAnnotation
- (this,
- source,
- new String[] {
- "appinfo", "\n\t\t\t@GenericGenerator(name=\"system-uuid\", strategy = \"uuid\")\n\t\t\t@GenericGenerator(name=\"hibseq\", strategy = \"hilo\", parameters = {\n\t\t\t@Parameter(name=\"table\", value = \"hilo_table\"), @Parameter(name=\"column\",\n\t\t\tvalue=\"the_hilo_column\") } )\n\t\t"
- });
- addAnnotation
- (getIdentityID_Myid(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t\t@Id @GeneratedValue(strategy=\"IDENTITY\")\n\t\t\t\t\t"
- });
- addAnnotation
- (getSimpleID_AutoID(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t\t@Id @GeneratedValue @Column(name=\"AUTOD\")\n\t\t\t\t\t"
- });
- addAnnotation
- (getSimpleID_Generated(),
- source,
- new String[] {
- "appinfo", "@Version @Generated(ALWAYS)"
- });
- addAnnotation
- (getTableID_Myid(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t\t@Id @GeneratedValue(generator=\"hibseq\")\n\t\t\t\t\t"
- });
- }
-
- /**
- * 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
- (identityIDEClass,
- source,
- new String[] {
- "name", "IdentityID",
- "kind", "elementOnly"
- });
- addAnnotation
- (getIdentityID_Myid(),
- source,
- new String[] {
- "kind", "element",
- "name", "myid"
- });
- addAnnotation
- (simpleIDEClass,
- source,
- new String[] {
- "name", "SimpleID",
- "kind", "elementOnly"
- });
- addAnnotation
- (getSimpleID_AutoID(),
- source,
- new String[] {
- "kind", "element",
- "name", "autoID"
- });
- addAnnotation
- (getSimpleID_Generated(),
- source,
- new String[] {
- "kind", "element",
- "name", "generated"
- });
- addAnnotation
- (tableIDEClass,
- source,
- new String[] {
- "name", "TableID",
- "kind", "elementOnly"
- });
- addAnnotation
- (getTableID_Myid(),
- source,
- new String[] {
- "kind", "element",
- "name", "myid"
- });
- }
-
-} //IdPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdentityIDImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdentityIDImpl.java
deleted file mode 100644
index df20703ba..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/IdentityIDImpl.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdentityIDImpl.java,v 1.3 2007/07/11 17:34:54 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.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.hb.generator.id.IdPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Identity ID</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl#getMyid <em>Myid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IdentityIDImpl extends EObjectImpl implements IdentityID {
- /**
- * The default value of the '{@link #getMyid() <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyid()
- * @generated
- * @ordered
- */
- protected static final long MYID_EDEFAULT = 0L;
-
- /**
- * The cached value of the '{@link #getMyid() <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyid()
- * @generated
- * @ordered
- */
- protected long myid = MYID_EDEFAULT;
-
- /**
- * This is true if the Myid attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean myidESet;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IdentityIDImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return IdPackage.Literals.IDENTITY_ID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public long getMyid() {
- return myid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMyid(long newMyid) {
- long oldMyid = myid;
- myid = newMyid;
- boolean oldMyidESet = myidESet;
- myidESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, IdPackage.IDENTITY_ID__MYID, oldMyid, myid, !oldMyidESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetMyid() {
- long oldMyid = myid;
- boolean oldMyidESet = myidESet;
- myid = MYID_EDEFAULT;
- myidESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, IdPackage.IDENTITY_ID__MYID, oldMyid, MYID_EDEFAULT, oldMyidESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetMyid() {
- return myidESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case IdPackage.IDENTITY_ID__MYID:
- return new Long(getMyid());
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case IdPackage.IDENTITY_ID__MYID:
- setMyid(((Long)newValue).longValue());
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case IdPackage.IDENTITY_ID__MYID:
- unsetMyid();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case IdPackage.IDENTITY_ID__MYID:
- return isSetMyid();
- }
- 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(" (myid: ");
- if (myidESet) result.append(myid); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-} //IdentityIDImpl \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/SimpleIDImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/SimpleIDImpl.java
deleted file mode 100644
index 9726dcb22..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/SimpleIDImpl.java
+++ /dev/null
@@ -1,291 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SimpleIDImpl.java,v 1.4 2007/08/10 16:41:10 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl;
-
-import java.util.Date;
-import javax.xml.datatype.XMLGregorianCalendar;
-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.hb.generator.id.IdPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Simple ID</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl#getAutoID <em>Auto ID</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl#getGenerated <em>Generated</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class SimpleIDImpl extends EObjectImpl implements SimpleID {
- /**
- * The default value of the '{@link #getAutoID() <em>Auto ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAutoID()
- * @generated
- * @ordered
- */
- protected static final long AUTO_ID_EDEFAULT = 0L;
-
- /**
- * The cached value of the '{@link #getAutoID() <em>Auto ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAutoID()
- * @generated
- * @ordered
- */
- protected long autoID = AUTO_ID_EDEFAULT;
-
- /**
- * This is true if the Auto ID attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean autoIDESet;
-
- /**
- * The default value of the '{@link #getGenerated() <em>Generated</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGenerated()
- * @generated
- * @ordered
- */
- protected static final long GENERATED_EDEFAULT = 0L;
-
- /**
- * The cached value of the '{@link #getGenerated() <em>Generated</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGenerated()
- * @generated
- * @ordered
- */
- protected long generated = GENERATED_EDEFAULT;
-
- /**
- * This is true if the Generated attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean generatedESet;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SimpleIDImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return IdPackage.Literals.SIMPLE_ID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public long getAutoID() {
- return autoID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAutoID(long newAutoID) {
- long oldAutoID = autoID;
- autoID = newAutoID;
- boolean oldAutoIDESet = autoIDESet;
- autoIDESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, IdPackage.SIMPLE_ID__AUTO_ID, oldAutoID, autoID, !oldAutoIDESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetAutoID() {
- long oldAutoID = autoID;
- boolean oldAutoIDESet = autoIDESet;
- autoID = AUTO_ID_EDEFAULT;
- autoIDESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, IdPackage.SIMPLE_ID__AUTO_ID, oldAutoID, AUTO_ID_EDEFAULT, oldAutoIDESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetAutoID() {
- return autoIDESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public long getGenerated() {
- return generated;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setGenerated(long newGenerated) {
- long oldGenerated = generated;
- generated = newGenerated;
- boolean oldGeneratedESet = generatedESet;
- generatedESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, IdPackage.SIMPLE_ID__GENERATED, oldGenerated, generated, !oldGeneratedESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetGenerated() {
- long oldGenerated = generated;
- boolean oldGeneratedESet = generatedESet;
- generated = GENERATED_EDEFAULT;
- generatedESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, IdPackage.SIMPLE_ID__GENERATED, oldGenerated, GENERATED_EDEFAULT, oldGeneratedESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetGenerated() {
- return generatedESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case IdPackage.SIMPLE_ID__AUTO_ID:
- return new Long(getAutoID());
- case IdPackage.SIMPLE_ID__GENERATED:
- return new Long(getGenerated());
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case IdPackage.SIMPLE_ID__AUTO_ID:
- setAutoID(((Long)newValue).longValue());
- return;
- case IdPackage.SIMPLE_ID__GENERATED:
- setGenerated(((Long)newValue).longValue());
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case IdPackage.SIMPLE_ID__AUTO_ID:
- unsetAutoID();
- return;
- case IdPackage.SIMPLE_ID__GENERATED:
- unsetGenerated();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case IdPackage.SIMPLE_ID__AUTO_ID:
- return isSetAutoID();
- case IdPackage.SIMPLE_ID__GENERATED:
- return isSetGenerated();
- }
- 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(" (autoID: ");
- if (autoIDESet) result.append(autoID); else result.append("<unset>");
- result.append(", generated: ");
- if (generatedESet) result.append(generated); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-} //SimpleIDImpl \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/TableIDImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/TableIDImpl.java
deleted file mode 100644
index 546c9549b..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/impl/TableIDImpl.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: TableIDImpl.java,v 1.3 2007/07/11 17:34:54 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.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.hb.generator.id.IdPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Table ID</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl#getMyid <em>Myid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TableIDImpl extends EObjectImpl implements TableID {
- /**
- * The default value of the '{@link #getMyid() <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyid()
- * @generated
- * @ordered
- */
- protected static final long MYID_EDEFAULT = 0L;
-
- /**
- * The cached value of the '{@link #getMyid() <em>Myid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyid()
- * @generated
- * @ordered
- */
- protected long myid = MYID_EDEFAULT;
-
- /**
- * This is true if the Myid attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean myidESet;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TableIDImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return IdPackage.Literals.TABLE_ID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public long getMyid() {
- return myid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMyid(long newMyid) {
- long oldMyid = myid;
- myid = newMyid;
- boolean oldMyidESet = myidESet;
- myidESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, IdPackage.TABLE_ID__MYID, oldMyid, myid, !oldMyidESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetMyid() {
- long oldMyid = myid;
- boolean oldMyidESet = myidESet;
- myid = MYID_EDEFAULT;
- myidESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, IdPackage.TABLE_ID__MYID, oldMyid, MYID_EDEFAULT, oldMyidESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetMyid() {
- return myidESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case IdPackage.TABLE_ID__MYID:
- return new Long(getMyid());
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case IdPackage.TABLE_ID__MYID:
- setMyid(((Long)newValue).longValue());
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case IdPackage.TABLE_ID__MYID:
- unsetMyid();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case IdPackage.TABLE_ID__MYID:
- return isSetMyid();
- }
- 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(" (myid: ");
- if (myidESet) result.append(myid); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-} //TableIDImpl \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore
deleted file mode 100644
index c93250eba..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore
+++ /dev/null
@@ -1,68 +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="id"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id"
- nsPrefix="id">
- <eAnnotations source="teneo.hibernate">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;@GenericGenerator(name=&quot;system-uuid&quot;, strategy = &quot;uuid&quot;)&#xA;&#x9;&#x9;&#x9;@GenericGenerator(name=&quot;hibseq&quot;, strategy = &quot;hilo&quot;, parameters = {&#xA;&#x9;&#x9;&#x9;@Parameter(name=&quot;table&quot;, value = &quot;hilo_table&quot;), @Parameter(name=&quot;column&quot;,&#xA;&#x9;&#x9;&#x9;value=&quot;the_hilo_column&quot;) } )&#xA;&#x9;&#x9;"/>
- </eAnnotations>
- <eClassifiers xsi:type="ecore:EClass" name="IdentityID">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="IdentityID"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="myid" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"
- unsettable="true">
- <eAnnotations source="teneo.hibernate">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@Id @GeneratedValue(strategy=&quot;IDENTITY&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="myid"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="SimpleID">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="SimpleID"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="autoID" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"
- unsettable="true">
- <eAnnotations source="teneo.hibernate">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@Id @GeneratedValue @Column(name=&quot;AUTOD&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="autoID"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="generated" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true">
- <eAnnotations source="teneo.hibernate">
- <details key="appinfo" value="@Version @Generated(ALWAYS)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="generated"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="TableID">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="TableID"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="myid" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"
- unsettable="true">
- <eAnnotations source="teneo.hibernate">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@Id @GeneratedValue(generator=&quot;hibseq&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="myid"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore_diagram b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore_diagram
deleted file mode 100644
index 194d6724a..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.ecore_diagram
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation" xmi:id="_VFyQwTkkEdu5Sv8ZTgiyXQ" type="Ecore" measurementUnit="Pixel">
- <styles xmi:type="notation:PageStyle" xmi:id="_VFyQwjkkEdu5Sv8ZTgiyXQ"/>
- <styles xmi:type="notation:GuideStyle" xmi:id="_VFyQwzkkEdu5Sv8ZTgiyXQ"/>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_VFyQxDkkEdu5Sv8ZTgiyXQ"/>
- <element xmi:type="ecore:EPackage" href="id.ecore#/"/>
-</notation:Diagram>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.genmodel
deleted file mode 100644
index 591fa4961..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.genmodel
+++ /dev/null
@@ -1,21 +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="Id" importerID="org.eclipse.xsd.ecore.importer"
- complianceLevel="5.0">
- <foreignModel>id.xsd</foreignModel>
- <genPackages prefix="Id" basePackage="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator"
- resource="XML" disposableProviderFactory="true" ecorePackage="id.ecore#/">
- <genClasses ecoreClass="id.ecore#//IdentityID">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute id.ecore#//IdentityID/myid"/>
- </genClasses>
- <genClasses ecoreClass="id.ecore#//SimpleID">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute id.ecore#//SimpleID/autoID"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute id.ecore#//SimpleID/generated"/>
- </genClasses>
- <genClasses ecoreClass="id.ecore#//TableID">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute id.ecore#//TableID/myid"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.xsd
deleted file mode 100644
index ec8468d09..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/model/id.xsd
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema
- targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id"
- xmlns="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:lib="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
->
-
- <xsd:annotation>
- <xsd:appinfo source="teneo.hibernate">
- @GenericGenerator(name="system-uuid", strategy = "uuid")
- @GenericGenerator(name="hibseq", strategy = "hilo", parameters = {
- @Parameter(name="table", value = "hilo_table"), @Parameter(name="column",
- value="the_hilo_column") } )
- </xsd:appinfo>
- </xsd:annotation>
-
- <xsd:complexType name="SimpleID">
- <xsd:sequence>
- <xsd:element name="autoID" type="xsd:long" minOccurs="0">
- <xsd:annotation>
- <xsd:appinfo source="teneo.hibernate">
- @Id @GeneratedValue @Column(name="AUTOD")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="generated" type="xsd:long">
- <xsd:annotation>
- <xsd:appinfo source="teneo.hibernate">@Version @Generated(ALWAYS)</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="TableID">
- <xsd:sequence>
- <xsd:element name="myid" type="xsd:long">
- <xsd:annotation>
- <xsd:appinfo source="teneo.hibernate">
- @Id @GeneratedValue(generator="hibseq")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="IdentityID">
- <xsd:sequence>
- <xsd:element name="myid" type="xsd:long">
- <xsd:annotation>
- <xsd:appinfo source="teneo.hibernate">
- @Id @GeneratedValue(strategy="IDENTITY")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
-</xsd:schema>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdAdapterFactory.java
deleted file mode 100644
index 4be74015f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdAdapterFactory.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdAdapterFactory.java,v 1.3 2008/04/04 11:50:25 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.util;
-
-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.hb.generator.id.*;
-
-/**
- * <!-- 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.hb.generator.id.IdPackage
- * @generated
- */
-public class IdAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static IdPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = IdPackage.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 IdSwitch<Adapter> modelSwitch =
- new IdSwitch<Adapter>() {
- @Override
- public Adapter caseIdentityID(IdentityID object) {
- return createIdentityIDAdapter();
- }
- @Override
- public Adapter caseSimpleID(SimpleID object) {
- return createSimpleIDAdapter();
- }
- @Override
- public Adapter caseTableID(TableID object) {
- return createTableIDAdapter();
- }
- @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.hb.generator.id.IdentityID <em>Identity ID</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.hb.generator.id.IdentityID
- * @generated
- */
- public Adapter createIdentityIDAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID <em>Simple ID</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.hb.generator.id.SimpleID
- * @generated
- */
- public Adapter createSimpleIDAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID <em>Table ID</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.hb.generator.id.TableID
- * @generated
- */
- public Adapter createTableIDAdapter() {
- 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;
- }
-
-} //IdAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceFactoryImpl.java
deleted file mode 100644
index 88b5c2ac1..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdResourceFactoryImpl.java,v 1.2 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.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.hb.generator.id.util.IdResourceImpl
- * @generated
- */
-public class IdResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new IdResourceImpl(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;
- }
-
-} //IdResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceImpl.java
deleted file mode 100644
index e97b4ef8f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdResourceImpl.java,v 1.1 2006/08/31 22:47:46 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.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.hb.generator.id.util.IdResourceFactoryImpl
- * @generated
- */
-public class IdResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public IdResourceImpl(URI uri) {
- super(uri);
- }
-
-} //IdResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdSwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdSwitch.java
deleted file mode 100644
index 8a54d1cfe..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdSwitch.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdSwitch.java,v 1.3 2007/07/11 17:34:54 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.*;
-
-/**
- * <!-- 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.hb.generator.id.IdPackage
- * @generated
- */
-public class IdSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static IdPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdSwitch() {
- if (modelPackage == null) {
- modelPackage = IdPackage.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 IdPackage.IDENTITY_ID: {
- IdentityID identityID = (IdentityID)theEObject;
- T result = caseIdentityID(identityID);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case IdPackage.SIMPLE_ID: {
- SimpleID simpleID = (SimpleID)theEObject;
- T result = caseSimpleID(simpleID);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case IdPackage.TABLE_ID: {
- TableID tableID = (TableID)theEObject;
- T result = caseTableID(tableID);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Identity ID</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>Identity ID</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIdentityID(IdentityID object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Simple ID</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>Simple ID</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSimpleID(SimpleID object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Table ID</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>Table ID</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseTableID(TableID 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;
- }
-
-} //IdSwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdXMLProcessor.java
deleted file mode 100644
index 8cce2ed50..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/util/IdXMLProcessor.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdXMLProcessor.java,v 1.2 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.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.hb.generator.id.IdPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class IdXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IdXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- IdPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the IdResourceFactoryImpl 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 IdResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new IdResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //IdXMLProcessor
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/IdentityIDValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/IdentityIDValidator.java
deleted file mode 100644
index 30d91b884..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/IdentityIDValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: IdentityIDValidator.java,v 1.1 2007/02/08 23:09:25 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdentityID}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface IdentityIDValidator {
- boolean validate();
-
- boolean validateMyid(long value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/SimpleIDValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/SimpleIDValidator.java
deleted file mode 100644
index a0c908834..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/SimpleIDValidator.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SimpleIDValidator.java,v 1.3 2007/08/10 16:41:10 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.validation;
-
-import java.util.Date;
-import javax.xml.datatype.XMLGregorianCalendar;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.SimpleID}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface SimpleIDValidator {
- boolean validate();
-
- boolean validateAutoID(long value);
-
- boolean validateGenerated(long value);
-
- boolean validateGeneratedDate(Date value);
-
- boolean validateGeneratedDate(XMLGregorianCalendar value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/TableIDValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/TableIDValidator.java
deleted file mode 100644
index b7ee97036..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/hb/generator/id/validation/TableIDValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: TableIDValidator.java,v 1.1 2007/02/08 23:09:25 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.TableID}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface TableIDValidator {
- boolean validate();
-
- boolean validateMyid(long value);
-}

Back to the top