diff options
author | mtaal | 2008-10-13 05:35:14 +0000 |
---|---|---|
committer | mtaal | 2008-10-13 05:35:14 +0000 |
commit | c0a5f5a95b506fd6b0c597eabe4953a916542209 (patch) | |
tree | 94463ab46f54695b4067ff57f40ee3bf2989b277 | |
parent | 088201c3e1038223e1f7f99cfb22c336f598ff32 (diff) | |
download | org.eclipse.emf.teneo-c0a5f5a95b506fd6b0c597eabe4953a916542209.tar.gz org.eclipse.emf.teneo-c0a5f5a95b506fd6b0c597eabe4953a916542209.tar.xz org.eclipse.emf.teneo-c0a5f5a95b506fd6b0c597eabe4953a916542209.zip |
[250239]
6 files changed, 358 insertions, 1 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..6b6271675 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" discriminator-value="IdentityID" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" discriminator-value="SimpleID" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="autoID" type="long" unsaved-value="0"> + <column not-null="false" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="generated" lazy="false" insert="false" update="false" not-null="true" unique="false" type="long" generated="always"> + <column not-null="true" unique="false" name="`generated`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" discriminator-value="TableID" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">hilo_table</param> + <param name="column">the_hilo_column</param> + </generator> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..bc9d3f192 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="autoID" type="long" unsaved-value="0"> + <column not-null="false" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="generated" lazy="false" insert="false" update="false" not-null="true" unique="false" type="long" generated="always"> + <column not-null="true" unique="false" name="`generated`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">hilo_table</param> + <param name="column">the_hilo_column</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..bc9d3f192 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbSequenceIdAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="autoID" type="long" unsaved-value="0"> + <column not-null="false" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="generated" lazy="false" insert="false" update="false" not-null="true" unique="false" type="long" generated="always"> + <column not-null="true" unique="false" name="`generated`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">hilo_table</param> + <param name="column">the_hilo_column</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java index 0801b8a39..a380ce21a 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java @@ -54,7 +54,7 @@ import org.eclipse.emf.teneo.test.emf.annotations.VariousAction; * All tests * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.70 $ + * @version $Revision: 1.71 $ */ public class AllTests { @@ -62,6 +62,7 @@ public class AllTests { TestSuite suite = new MultiCfgTestSuite("Test for org.eclipse.emf.teneo.hibernate.test.emf.annotations", HibernateTestbed .instance().getConfigurations()); + suite.addTestSuite(HbSequenceIdAction.class); suite.addTestSuite(UserTypeAction.class); suite.addTestSuite(HibernateAction.class); diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/HbSequenceIdAction.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/HbSequenceIdAction.java new file mode 100644 index 000000000..c6f48fb57 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/HbSequenceIdAction.java @@ -0,0 +1,75 @@ +/** + * <copyright> + * + * Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Martin Taal + * </copyright> + * + * $Id: HbSequenceIdAction.java,v 1.1 2008/10/13 05:35:14 mtaal Exp $ + */ + +package org.eclipse.emf.teneo.hibernate.test.emf.annotations; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.Properties; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.ecore.resource.ResourceSet; +import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; +import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl; +import org.eclipse.emf.teneo.hibernate.HbHelper; +import org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.IdPackage; +import org.eclipse.emf.teneo.test.AbstractTestAction; +import org.eclipse.emf.teneo.test.stores.TestStore; + +/** + * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> + * @version $Revision: 1.1 $ + */ +public class HbSequenceIdAction extends AbstractTestAction { + /** How many test objects are created */ + private static final int NO_TEST_OBJECTS = 10; + + // this epackage is actually not tested! + public HbSequenceIdAction() { + super(IdPackage.eINSTANCE); + } + + @Override + public void doAction(TestStore store) { + final ResourceSet resourceSet = new ResourceSetImpl(); + resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("*", new EcoreResourceFactoryImpl()); + final ArrayList<EPackage> epackages = new ArrayList<EPackage>(); + try { + final Resource res = resourceSet.createResource(URI.createURI("test.ecore")); + res.load(this.getClass().getResourceAsStream("sequenceid.ecore"), Collections.EMPTY_MAP); + + final Iterator<EObject> it = res.getAllContents(); + while (it.hasNext()) { + final Object obj = it.next(); + if (obj instanceof EPackage) { + EPackage epack = (EPackage) obj; + if (EPackage.Registry.INSTANCE.getEPackage(epack.getNsURI()) == null) { + EPackage.Registry.INSTANCE.put(epack.getNsURI(), epack); + } + epackages.add(epack); + } + } + System.err.println(HbHelper.INSTANCE.generateMapping(epackages.toArray(new EPackage[epackages.size()]), + new Properties())); + } catch (Exception e) { + throw new Error(e); + } + } +}
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/sequenceid.ecore b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/sequenceid.ecore new file mode 100644 index 000000000..02113b65d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/sequenceid.ecore @@ -0,0 +1,146 @@ +<?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/id" nsPrefix="id"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="			@SequenceStyleGenerator(name="GENERATORSTYLE" sequenceName="mySequenceStyle" optimizer=HILO initialValue=5 incrementSize=25)
			@SequenceGenerator(name="GENERATOR" sequenceName="mySequenceName" initialValue=10 allocationSize=100)
			@SequenceGenerator(name="GENERATORTWO" sequenceName="myOtherSequenceName" initialValue=5 allocationSize=50)
			@SequenceGenerator(name="mySequence" sequenceName="mySequence")"/> + </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" unique="false" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@GeneratedValue(strategy="IDENTITY")
			"/> + </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" unique="false" + lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" + unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@GeneratedValue
				@Column(name="AUTOD" nullable="false")
			"/> + </eAnnotations> + <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> + <details key="kind" value="element"/> + <details key="name" value="autoID"/> + </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" unique="false" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@GeneratedValue(strategy="TABLE")
			"/> + </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="TableGeneratorID"> + <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" unique="false" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@TableGenerator(name="TGENERATOR", table="TGEN", initialValue="2", valueColumnName="VAL_COL")
				@GeneratedValue(strategy=TABLE, generator="TGENERATOR")
			"/> + </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="AutoID"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="autoID" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" iD="true"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="OtherTableGeneratorID"> + <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> + <details key="name" value="TableID"/> + <details key="kind" value="elementOnly"/> + </eAnnotations> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="				@TableGenerator(name="OTHERTGENERATOR", table="OTHERTGEN", initialValue="2", valueColumnName="VAL_COL")
			"/> + </eAnnotations> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="myid" unique="false" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@GeneratedValue(strategy=TABLE, generator="OTHERTGENERATOR")
			"/> + </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="SequenceID"> + <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" unique="false" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@GeneratedValue(strategy="SEQUENCE" generator="GENERATOR")
			"/> + </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="SequenceStyleID"> + <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" unique="false" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@GeneratedValue(strategy="SEQUENCESTYLE" generator="GENERATORSTYLE")
			"/> + </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="RealSequenceID"> + <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" unique="false" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true"> + <eAnnotations source="teneo.jpa"> + <details key="appinfo" value="
				@Id
				@GeneratedValue(strategy="SEQUENCE" generator="mySequence")
			"/> + </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> |