diff options
Diffstat (limited to 'examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples')
40 files changed, 0 insertions, 8891 deletions
diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/Dynamic.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/Dynamic.java deleted file mode 100755 index c69ca3d56..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/Dynamic.java +++ /dev/null @@ -1,207 +0,0 @@ -/** - * <copyright> - * - * Copyright (c) 2010 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: Dynamic.java,v 1.4 2010/03/03 13:26:20 mtaal Exp $ - */ - -package org.eclipse.emf.teneo.hibernate.examples; - -import java.io.IOException; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcoreFactory; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.change.ChangeDescription; -import org.eclipse.emf.ecore.change.FeatureChange; -import org.eclipse.emf.ecore.change.util.ChangeRecorder; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.teneo.hibernate.HbDataStore; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryFactory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; -import org.hibernate.Query; -import org.hibernate.Session; -import org.hibernate.SessionFactory; -import org.hibernate.Transaction; - -/** - * Dynamic Tutorial - * - * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.4 $ - */ -public class Dynamic { - - /** The main method */ - public static void main(String[] args) { - - // first do the quick start with the correct dbname - HbDataStore hbds = QuickStart.doQuickStart("DynamicLibrary"); - - final EcoreFactory efactory = EcoreFactory.eINSTANCE; - final EcorePackage epackage = EcorePackage.eINSTANCE; - - // This tutorial will create a new type of book which inherits from the - // standard - // Book - - // create the SchoolBook EClass - EClass schoolBookEClass = efactory.createEClass(); - schoolBookEClass.setName("SchoolBook"); - - // create a new attribute for this EClass - EAttribute level = efactory.createEAttribute(); - level.setName("level"); - level.setEType(epackage.getEInt()); - schoolBookEClass.getEStructuralFeatures().add(level); - - // Set the supertype of SchoolBook to the Book - schoolBookEClass.getESuperTypes().add(ExtlibraryPackage.eINSTANCE.getBook()); - - // create a course - EClass courseEClass = efactory.createEClass(); - courseEClass.setName("Course"); - - // give the Course a name - EAttribute courseName = efactory.createEAttribute(); - courseName.setName("courseName"); - courseName.setEType(epackage.getEString()); - courseEClass.getEStructuralFeatures().add(courseName); - - // A course always uses one SchoolBook - EReference courseBook = efactory.createEReference(); - courseBook.setName("courseBook"); - courseBook.setEType(schoolBookEClass); - courseBook.setContainment(false); - courseEClass.getEStructuralFeatures().add(courseBook); - - // Create a new EPackage and add the new EClasses - EPackage schoolPackage = efactory.createEPackage(); - schoolPackage.setName("elv"); - schoolPackage.setNsPrefix("elv"); - schoolPackage.setNsURI("http:///www.elver.org/School"); - schoolPackage.getEClassifiers().add(courseEClass); - schoolPackage.getEClassifiers().add(schoolBookEClass); - EPackage.Registry.INSTANCE.put(schoolPackage.getNsURI(), schoolPackage); - - // Now reset the epackages in the datastore - hbds.setEPackages(new EPackage[] { ExtlibraryPackage.eINSTANCE, schoolPackage }); - - // recreate the database - hbds.initialize(); - - // print the hibernate.hbm.xml for demo purposes - System.err.println(hbds.getMappingXML()); - - // Now create an author, is used below - Writer writer = ExtlibraryFactory.eINSTANCE.createWriter(); - writer.setName("Teacher"); - - // now create a schoolBook - // NOTE: because schoolBook inherits from Book, the create method will - // return a Book - Book bk = (Book) schoolPackage.getEFactoryInstance().create(schoolBookEClass); - bk.setAuthor(writer); - bk.setTitle("Biografie van Multatuli"); - bk.setCategory(BookCategory.BIOGRAPHY); - bk.setPages(500); - bk.eSet(level, new Integer(1)); - - // and create a course - EObject course = schoolPackage.getEFactoryInstance().create(courseEClass); - course.eSet(courseName, "Dutch Literature Level 1"); - course.eSet(courseBook, bk); - - final SessionFactory sessionFactory = hbds.getSessionFactory(); - - // now persist them all - - Session session = sessionFactory.openSession(); - Transaction tx = session.getTransaction(); - tx.begin(); - session.save(bk); - session.save(writer); - session.save(course); - tx.commit(); - - // Now query for the books, at least one of them should be a SchoolBook - tx.begin(); - Query qry = session.createQuery("from Book"); - List<?> list = qry.list(); - Book schoolBook = null; - for (Iterator<?> it = list.iterator(); it.hasNext();) { - Book book = (Book) it.next(); - if (book.eClass() == schoolBookEClass) { - if (schoolBook != null) { - throw new Error("More than one schoolbook? Was the database not empty?"); - } - schoolBook = book; - } - } - if (schoolBook == null) { - throw new Error("No schoolbook??"); - } - - // now query for all courses the right name - qry = session.createQuery("from Course where courseName='Dutch Literature Level 1'"); - list = qry.list(); - EObject eobject = (EObject) list.get(0); - if (eobject.eClass() != courseEClass) { - throw new Error("No Course?"); - } - // the schoolBook should be the book of the course - Book courseBk = (Book) eobject.eGet(courseBook); - if (courseBk != schoolBook) { - throw new Error("No schoolbook?"); - } - // and the dynamic feature level should be 1 - if (((Integer) courseBk.eGet(level)).intValue() != 1) { - throw new Error("Incorrect level?"); - } - - tx.commit(); - session.close(); - - URI uri1 = URI.createURI("hibernate://?dsname=Library&query1=FROM Course"); - Resource res1 = new ResourceSetImpl().createResource(uri1); - try { - res1.load(Collections.EMPTY_MAP); - } catch (IOException e) { - e.printStackTrace(); - } - - eobject = res1.getContents().get(0); - ChangeRecorder cr = new ChangeRecorder(res1); - eobject.eSet(courseName, "English 1"); - System.out.println(eobject); - - ChangeDescription changeDescription = cr.endRecording(); - - EMap<EObject, EList<FeatureChange>> objectChanges = changeDescription.getObjectChanges(); - System.out.println("change size: " + objectChanges.size()); - course.eSet(courseName, "Dutch Literature Level 1"); - } -} diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/QuickStart.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/QuickStart.java deleted file mode 100755 index 1c9d1e162..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/QuickStart.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * <copyright> - * - * Copyright (c) 2010 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: QuickStart.java,v 1.7 2010/11/11 10:28:15 mtaal Exp $ - */ - -package org.eclipse.emf.teneo.hibernate.examples; - -import java.util.Properties; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.teneo.PersistenceOptions; -import org.eclipse.emf.teneo.hibernate.HbDataStore; -import org.eclipse.emf.teneo.hibernate.HbHelper; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryFactory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; -import org.hibernate.Session; -import org.hibernate.SessionFactory; -import org.hibernate.Transaction; -import org.hibernate.cfg.Environment; - -/** - * Quick Start Tutorial for the <a - * href="http://wiki.eclipse.org/Teneo">Teneo</a> project. - * - * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.7 $ - */ -public class QuickStart { - - /** The main method */ - public static void main(String[] args) { - // the name of the database, this database should exist but does not - // need to contain tables - String dbName = "library"; - doQuickStart(dbName); // ignore return - } - - /** - * The method performing the real action. This method is used by other - * tutorials therefore has it been made public and expects the database name - * and returns an instance of the HbDataStore. - */ - public static HbDataStore doQuickStart(String dbName) { - - // The hibernate properties can be set by having a hibernate.properties - // file in the root of - // the classpath. - // Another approach is setting the properties in the HbDataStore. - // For more information see section 3.1 of the Hibernate manual - final Properties props = new Properties(); - // props.setProperty(Environment.DRIVER, "com.mysql.jdbc.Driver"); - // props.setProperty(Environment.USER, "root"); - // props.setProperty(Environment.URL, "jdbc:mysql://127.0.0.1:3306/" + - // dbName); - // props.setProperty(Environment.PASS, "root"); - // props.setProperty(Environment.DIALECT, - // org.hibernate.dialect.MySQLInnoDBDialect.class.getName()); - - props.setProperty(Environment.DRIVER, "org.hsqldb.jdbcDriver"); - props.setProperty(Environment.USER, "sa"); - props.setProperty(Environment.URL, "jdbc:hsqldb:mem:library"); - props.setProperty(Environment.PASS, ""); - props.setProperty(Environment.DIALECT, - org.hibernate.dialect.HSQLDialect.class.getName()); - - // set a specific option - // see this page - // http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options - // for all the available options - props.setProperty(PersistenceOptions.CASCADE_POLICY_ON_NON_CONTAINMENT, - "REFRESH,PERSIST,MERGE"); - - // the name of the session factory - String hbName = "Library"; - // create the HbDataStore using the name - final HbDataStore hbds = HbHelper.INSTANCE - .createRegisterDataStore(hbName); - - // set the properties - hbds.setDataStoreProperties(props); - - // sets its epackages stored in this datastore - hbds.setEPackages(new EPackage[] { ExtlibraryPackage.eINSTANCE }); - - // initialize, also creates the database tables - try { - hbds.initialize(); - } finally { - // print the generated mapping - System.err.println(hbds.getMappingXML()); - } - - SessionFactory sessionFactory = hbds.getSessionFactory(); - - // Create a session and a transaction - Session session = sessionFactory.openSession(); - Transaction tx = session.getTransaction(); - - // Start a transaction, create a library and make it persistent - tx.begin(); - Library lib = ExtlibraryFactory.eINSTANCE.createLibrary(); - lib.setName("My Library"); - session.save(lib); - - // create a writer - Writer writer = ExtlibraryFactory.eINSTANCE.createWriter(); - writer.setName("JRR Tolkien"); - - // and one of his books - Book book = ExtlibraryFactory.eINSTANCE.createBook(); - book.setAuthor(writer); - book.setPages(305); - book.setTitle("The Hobbit"); - book.setCategory(BookCategory.SCIENCE_FICTION); - session.save(book); - - // add the writer/book to the library. - lib.getWriters().add(writer); - lib.getBooks().add(book); - - // at commit the objects will be present in the database - tx.commit(); - // and close of, this should actually be done in a finally block - session.close(); - - return hbds; - } -}
\ No newline at end of file diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/Tutorial.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/Tutorial.java deleted file mode 100755 index dcae6234a..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/Tutorial.java +++ /dev/null @@ -1,282 +0,0 @@ -/** - * <copyright> - * - * Copyright (c) 2010 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: Tutorial.java,v 1.4 2010/11/11 10:28:15 mtaal Exp $ - */ - -package org.eclipse.emf.teneo.hibernate.examples; - -import java.io.IOException; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Properties; - -import org.eclipse.emf.common.util.URI; -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.teneo.PersistenceOptions; -import org.eclipse.emf.teneo.hibernate.HbDataStore; -import org.eclipse.emf.teneo.hibernate.HbHelper; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryFactory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; -import org.eclipse.emf.teneo.hibernate.resource.HibernateResource; -import org.hibernate.Query; -import org.hibernate.Session; -import org.hibernate.SessionFactory; -import org.hibernate.cfg.Environment; - -/** - * Quick Start Tutorial - * - * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.4 $ - */ -public class Tutorial { - - /** The main method */ - public static void main(String[] args) { - - // To configure Hibernate, supply properties describing the JDBC driver, - // URL, username/password and SQL dialect. - // By default the properties are obtained from the file - // "hibernate.properties" at the classpath root. - // - // Alternatively, you can set the properties programmatically: - // - // For more information see <a - // href="http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-programmatic"> - // section 3.1 of the Hibernate manual</a>. - // - Properties hibernateProperties = new Properties(); - // - // 1) From a ".properties" file or stream. - // InputStream in = ... - // hibernateProperties.load(in); - // - // 2) or populated manually: - // hibernateProperties.setProperty(Environment.DRIVER, - // "com.mysql.jdbc.Driver"); - // hibernateProperties.setProperty(Environment.USER, "root"); - // hibernateProperties.setProperty(Environment.URL, - // "jdbc:mysql://127.0.0.1:3306/library"); - // hibernateProperties.setProperty(Environment.PASS, "root"); - // hibernateProperties.setProperty(Environment.DIALECT, - // "org.hibernate.dialect.MySQLInnoDBDialect"); - - hibernateProperties.setProperty(Environment.DRIVER, - "org.hsqldb.jdbcDriver"); - hibernateProperties.setProperty(Environment.USER, "sa"); - hibernateProperties.setProperty(Environment.URL, - "jdbc:hsqldb:mem:library"); - hibernateProperties.setProperty(Environment.PASS, ""); - hibernateProperties.setProperty(Environment.DIALECT, - org.hibernate.dialect.HSQLDialect.class.getName()); - - // set a specific option - // see this page - // http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options - // for all the available options - hibernateProperties.setProperty( - PersistenceOptions.CASCADE_POLICY_ON_NON_CONTAINMENT, - "REFRESH,PERSIST,MERGE"); - - // use the joined inheritance mapping - hibernateProperties.setProperty(PersistenceOptions.INHERITANCE_MAPPING, - "JOINED"); - - // use an annotations file as an example - // this lets the library use a special table - hibernateProperties.setProperty(PersistenceOptions.PERSISTENCE_XML, - "org/eclipse/emf/teneo/hibernate/examples/annotations.xml"); - - // Create the DataStore. - final String dataStoreName = "LibraryDataStore"; - final HbDataStore dataStore = HbHelper.INSTANCE - .createRegisterDataStore(dataStoreName); - dataStore.setDataStoreProperties(hibernateProperties); - - // Configure the EPackages used by this DataStore. - dataStore.setEPackages(new EPackage[] { ExtlibraryPackage.eINSTANCE }); - - // Initialize the DataStore. This sets up the Hibernate mapping and, in - // turn, creates the corresponding tables in the database. - try { - dataStore.initialize(); - } finally { - // print the hibernate mapping - System.err.println(dataStore.getMappingXML()); - } - - final SessionFactory sessionFactory = dataStore.getSessionFactory(); - { - // Open a new Session and start transaction. - final Session session = sessionFactory.openSession(); - session.beginTransaction(); - - // Create a library. - Library library = ExtlibraryFactory.eINSTANCE.createLibrary(); - library.setName("My Library"); - // Make it persistent. - session.save(library); - - // Create a writer... - Writer writer = ExtlibraryFactory.eINSTANCE.createWriter(); - writer.setName("JRR Tolkien"); - writer.setFirstName("John"); - writer.setLastName("Tolkien"); - - // ...and one of his books. - Book book = ExtlibraryFactory.eINSTANCE.createBook(); - book.setAuthor(writer); - book.setPages(305); - book.setTitle("The Hobbit"); - book.setCategory(BookCategory.SCIENCE_FICTION); - - // Add the Writer and Book to the Library. - library.getWriters().add(writer); - library.getBooks().add(book); - session.save(book); - - // Commit the changes to the database. - session.getTransaction().commit(); - // Close the session. Not necessary if - session.close(); - } - - { - final Session session = sessionFactory.openSession(); - session.beginTransaction(); - - // Retrieve the Library and its child objects. - // Note that you must use the EClass name in the HQL query. - Query query = session.createQuery("FROM Library"); - List<?> libraries = query.list(); - Library library = (Library) libraries.get(0); - - // Obtain the Writer and Book - Writer writer = library.getWriters().get(0); - System.out.println(writer.getName()); - Book book = library.getBooks().get(0); - System.out.println(book.getTitle()); - - // Verify that the eContainer and references are set correctly. - assert (book.eContainer() == library); - assert (writer.getBooks().get(0) == book); - - // Add a new Writer and Book - Writer georgeOrwell = ExtlibraryFactory.eINSTANCE.createWriter(); - georgeOrwell.setName("G. Orwell"); - georgeOrwell.setFirstName("George"); - georgeOrwell.setLastName("Orwell"); - - // Create a new Book and set the Writer and Library. - Book georgesBook = ExtlibraryFactory.eINSTANCE.createBook(); - georgesBook.setPages(250); - georgesBook.setTitle("1984"); - georgesBook.setCategory(BookCategory.SCIENCE_FICTION); - georgesBook.setAuthor(georgeOrwell); - - library.getBooks().add(georgesBook); - library.getWriters().add(georgeOrwell); - - // Commit. - session.getTransaction().commit(); - session.close(); - } - - { - final Session session = sessionFactory.openSession(); - session.beginTransaction(); - - // Retrieve all Books and display their titles. - Query query = session.createQuery("FROM Book"); - List<?> books = query.list(); - for (Iterator<?> it = books.iterator(); it.hasNext();) { - Book book = (Book) it.next(); - System.out.println(book.getTitle()); - } - - // Retrieve George Orwell's book. - query = session - .createQuery("SELECT book FROM Book book, Writer writ WHERE " - + " book.title='1984' AND book.author=writ AND writ.name='G. Orwell'"); - books = query.list(); - - // Show some results - System.out - .println("There are " + books.size() + " in the Library."); - System.out.println(books.get(0).getClass().getName()); - Book book = (Book) books.get(0); - System.out.println(book.getTitle()); - System.out.println(book.getAuthor().getName()); - - // Count the number of books in the library - query = session - .createQuery("SELECT count(allbooks) FROM Library lib LEFT JOIN lib.books AS allbooks " - + " WHERE lib.name='My Library'"); - int count = ((Number) query.uniqueResult()).intValue(); - System.out.println("There are " + count + " books in the library"); - session.getTransaction().commit(); - } - - try { - String uriStr = "hibernate://?" + HibernateResource.DS_NAME_PARAM - + "=" + dataStoreName; - final URI uri = URI.createURI(uriStr); - ResourceSet resourceSet = new ResourceSetImpl(); - final Resource res = resourceSet.createResource(uri); - - res.load(Collections.EMPTY_MAP); - Iterator<?> it = res.getContents().iterator(); - Library libTest; - while (it.hasNext()) { - libTest = (Library) it.next(); - System.out.println(libTest.getName()); - } - - Library libNew = ExtlibraryFactory.eINSTANCE.createLibrary(); - libNew.setName("My Second Library"); - - // create a writer - Writer writerNew = ExtlibraryFactory.eINSTANCE.createWriter(); - writerNew.setName("I. Asimov"); - writerNew.setFirstName("Isaac"); - writerNew.setLastName("Asimov"); - - // and one of his books - Book bookNew = ExtlibraryFactory.eINSTANCE.createBook(); - bookNew.setAuthor(writerNew); - bookNew.setPages(305); - bookNew.setTitle("Foundation and Empire"); - bookNew.setCategory(BookCategory.SCIENCE_FICTION); - - // add the writer/book to the library. - libNew.getWriters().add(writerNew); - libNew.getBooks().add(bookNew); - - // now add the top-level object to the resource - res.getContents().add(libNew); - - res.save(null); - } catch (IOException e) { - throw new Error("IOException", e); - } - } -} diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/annotations.xml b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/annotations.xml deleted file mode 100644 index 642806084..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/annotations.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<persistence-mapping xmlns="http://www.eclipse.org/emft/teneo"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
- <epackage namespace-uri="http://www.eclipse.org/emf/teneo/hibernate/examples/extlibrary">
- <eclass name="Library">
- <table name="theLibraryTable"/>
- </eclass>
- </epackage>
-</persistence-mapping>
\ No newline at end of file diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Addressable.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Addressable.java deleted file mode 100644 index 4c50acdb1..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Addressable.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Addressable.java,v 1.2 2010/03/02 06:08:39 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Addressable</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable#getAddress <em>Address</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getAddressable() - * @model interface="true" abstract="true" - * @generated - */ -public interface Addressable extends EObject { - /** - * Returns the value of the '<em><b>Address</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Address</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Address</em>' attribute. - * @see #setAddress(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getAddressable_Address() - * @model - * @generated - */ - String getAddress(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable#getAddress <em>Address</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Address</em>' attribute. - * @see #getAddress() - * @generated - */ - void setAddress(String value); - -} // Addressable diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/AudioVisualItem.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/AudioVisualItem.java deleted file mode 100644 index fb4cc84cd..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/AudioVisualItem.java +++ /dev/null @@ -1,107 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: AudioVisualItem.java,v 1.2 2010/03/02 06:08:40 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Audio Visual Item</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getTitle <em>Title</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getMinutesLength <em>Minutes Length</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#isDamaged <em>Damaged</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getAudioVisualItem() - * @model abstract="true" - * @generated - */ -public interface AudioVisualItem extends CirculatingItem { - /** - * Returns the value of the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Title</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Title</em>' attribute. - * @see #setTitle(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getAudioVisualItem_Title() - * @model - * @generated - */ - String getTitle(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getTitle <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Title</em>' attribute. - * @see #getTitle() - * @generated - */ - void setTitle(String value); - - /** - * Returns the value of the '<em><b>Minutes Length</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Minutes Length</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Minutes Length</em>' attribute. - * @see #setMinutesLength(int) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getAudioVisualItem_MinutesLength() - * @model required="true" - * @generated - */ - int getMinutesLength(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getMinutesLength <em>Minutes Length</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Minutes Length</em>' attribute. - * @see #getMinutesLength() - * @generated - */ - void setMinutesLength(int value); - - /** - * Returns the value of the '<em><b>Damaged</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Damaged</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Damaged</em>' attribute. - * @see #setDamaged(boolean) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getAudioVisualItem_Damaged() - * @model - * @generated - */ - boolean isDamaged(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#isDamaged <em>Damaged</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Damaged</em>' attribute. - * @see #isDamaged() - * @generated - */ - void setDamaged(boolean value); - -} // AudioVisualItem diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Book.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Book.java deleted file mode 100644 index c2dbfd51a..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Book.java +++ /dev/null @@ -1,168 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Book.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Book</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getTitle <em>Title</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getPages <em>Pages</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getCategory <em>Category</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getAuthor <em>Author</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBook() - * @model - * @generated - */ -public interface Book extends CirculatingItem { - /** - * Returns the value of the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Title</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Title</em>' attribute. - * @see #setTitle(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBook_Title() - * @model - * @generated - */ - String getTitle(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getTitle <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Title</em>' attribute. - * @see #getTitle() - * @generated - */ - void setTitle(String value); - - /** - * Returns the value of the '<em><b>Pages</b></em>' attribute. - * The default value is <code>"100"</code>. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Pages</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Pages</em>' attribute. - * @see #setPages(int) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBook_Pages() - * @model default="100" - * @generated - */ - int getPages(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getPages <em>Pages</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Pages</em>' attribute. - * @see #getPages() - * @generated - */ - void setPages(int value); - - /** - * Returns the value of the '<em><b>Category</b></em>' attribute. - * The literals are from the enumeration {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Category</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Category</em>' attribute. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory - * @see #isSetCategory() - * @see #unsetCategory() - * @see #setCategory(BookCategory) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBook_Category() - * @model unsettable="true" - * annotation="teneo.jpa value='@Enumerated(ORDINAL)'" - * @generated - */ - BookCategory getCategory(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getCategory <em>Category</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Category</em>' attribute. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory - * @see #isSetCategory() - * @see #unsetCategory() - * @see #getCategory() - * @generated - */ - void setCategory(BookCategory value); - - /** - * Unsets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getCategory <em>Category</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetCategory() - * @see #getCategory() - * @see #setCategory(BookCategory) - * @generated - */ - void unsetCategory(); - - /** - * Returns whether the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getCategory <em>Category</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Category</em>' attribute is set. - * @see #unsetCategory() - * @see #getCategory() - * @see #setCategory(BookCategory) - * @generated - */ - boolean isSetCategory(); - - /** - * Returns the value of the '<em><b>Author</b></em>' reference. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getBooks <em>Books</em>}'. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Author</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Author</em>' reference. - * @see #setAuthor(Writer) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBook_Author() - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getBooks - * @model opposite="books" required="true" - * @generated - */ - Writer getAuthor(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getAuthor <em>Author</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Author</em>' reference. - * @see #getAuthor() - * @generated - */ - void setAuthor(Writer value); - -} // Book diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/BookCategory.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/BookCategory.java deleted file mode 100644 index 6bad32ced..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/BookCategory.java +++ /dev/null @@ -1,239 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: BookCategory.java,v 1.2 2010/03/02 06:08:39 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * <!-- begin-user-doc --> - * A representation of the literals of the enumeration '<em><b>Book Category</b></em>', - * and utility methods for working with them. - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBookCategory() - * @model - * @generated - */ -public enum BookCategory implements Enumerator { - /** - * The '<em><b>Mystery</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #MYSTERY_VALUE - * @generated - * @ordered - */ - MYSTERY(0, "Mystery", "Mystery"), - - /** - * The '<em><b>Science Fiction</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #SCIENCE_FICTION_VALUE - * @generated - * @ordered - */ - SCIENCE_FICTION(1, "ScienceFiction", "ScienceFiction"), - - /** - * The '<em><b>Biography</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #BIOGRAPHY_VALUE - * @generated - * @ordered - */ - BIOGRAPHY(2, "Biography", "Biography"); - - /** - * The '<em><b>Mystery</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Mystery</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #MYSTERY - * @model name="Mystery" - * @generated - * @ordered - */ - public static final int MYSTERY_VALUE = 0; - - /** - * The '<em><b>Science Fiction</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Science Fiction</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SCIENCE_FICTION - * @model name="ScienceFiction" - * @generated - * @ordered - */ - public static final int SCIENCE_FICTION_VALUE = 1; - - /** - * The '<em><b>Biography</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Biography</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #BIOGRAPHY - * @model name="Biography" - * @generated - * @ordered - */ - public static final int BIOGRAPHY_VALUE = 2; - - /** - * An array of all the '<em><b>Book Category</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final BookCategory[] VALUES_ARRAY = - new BookCategory[] { - MYSTERY, - SCIENCE_FICTION, - BIOGRAPHY, - }; - - /** - * A public read-only list of all the '<em><b>Book Category</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List<BookCategory> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Book Category</b></em>' literal with the specified literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static BookCategory get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - BookCategory result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Book Category</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static BookCategory getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - BookCategory result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Book Category</b></em>' literal with the specified integer value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static BookCategory get(int value) { - switch (value) { - case MYSTERY_VALUE: return MYSTERY; - case SCIENCE_FICTION_VALUE: return SCIENCE_FICTION; - case BIOGRAPHY_VALUE: return BIOGRAPHY; - } - return null; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final int value; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String name; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private BookCategory(int value, String name, String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getValue() { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLiteral() { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - return literal; - } - -} //BookCategory diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/BookOnTape.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/BookOnTape.java deleted file mode 100644 index fda95d1de..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/BookOnTape.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: BookOnTape.java,v 1.2 2010/03/02 06:08:39 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Book On Tape</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getReader <em>Reader</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getBookAuthor <em>Book Author</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBookOnTape() - * @model - * @generated - */ -public interface BookOnTape extends AudioVisualItem { - /** - * Returns the value of the '<em><b>Reader</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Reader</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Reader</em>' reference. - * @see #setReader(Person) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBookOnTape_Reader() - * @model - * @generated - */ - Person getReader(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getReader <em>Reader</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Reader</em>' reference. - * @see #getReader() - * @generated - */ - void setReader(Person value); - - /** - * Returns the value of the '<em><b>Book Author</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Book Author</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Book Author</em>' reference. - * @see #setBookAuthor(Writer) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBookOnTape_BookAuthor() - * @model annotation="http://annotation.elver.org/JoinColumn name='BookOnTapeAuthor'" - * @generated - */ - Writer getBookAuthor(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getBookAuthor <em>Book Author</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Book Author</em>' reference. - * @see #getBookAuthor() - * @generated - */ - void setBookAuthor(Writer value); - -} // BookOnTape diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Borrower.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Borrower.java deleted file mode 100644 index 28ae31503..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Borrower.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Borrower.java,v 1.2 2010/03/02 06:08:40 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Borrower</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower#getBorrowed <em>Borrowed</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBorrower() - * @model - * @generated - */ -public interface Borrower extends Person { - /** - * Returns the value of the '<em><b>Borrowed</b></em>' reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable}. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getBorrowers <em>Borrowers</em>}'. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Borrowed</em>' reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Borrowed</em>' reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getBorrower_Borrowed() - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getBorrowers - * @model opposite="borrowers" - * @generated - */ - EList<Lendable> getBorrowed(); - -} // Borrower diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/CirculatingItem.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/CirculatingItem.java deleted file mode 100644 index 93598ac4d..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/CirculatingItem.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: CirculatingItem.java,v 1.2 2010/03/02 06:08:40 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Circulating Item</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getCirculatingItem() - * @model abstract="true" - * @generated - */ -public interface CirculatingItem extends Item, Lendable { -} // CirculatingItem diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Employee.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Employee.java deleted file mode 100644 index 28348236c..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Employee.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Employee.java,v 1.2 2010/03/02 06:08:40 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Employee</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee#getManager <em>Manager</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getEmployee() - * @model - * @generated - */ -public interface Employee extends Person { - /** - * Returns the value of the '<em><b>Manager</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Manager</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Manager</em>' reference. - * @see #setManager(Employee) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getEmployee_Manager() - * @model - * @generated - */ - Employee getManager(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee#getManager <em>Manager</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Manager</em>' reference. - * @see #getManager() - * @generated - */ - void setManager(Employee value); - -} // Employee diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/ExtlibraryFactory.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/ExtlibraryFactory.java deleted file mode 100644 index c6c672057..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/ExtlibraryFactory.java +++ /dev/null @@ -1,109 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryFactory.java,v 1.2 2010/03/02 06:08:40 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -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.hibernate.examples.extlibrary.ExtlibraryPackage - * @generated - */ -public interface ExtlibraryFactory extends EFactory { - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - ExtlibraryFactory eINSTANCE = org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryFactoryImpl.init(); - - /** - * Returns a new object of class '<em>Book</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Book</em>'. - * @generated - */ - Book createBook(); - - /** - * Returns a new object of class '<em>Library</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Library</em>'. - * @generated - */ - Library createLibrary(); - - /** - * Returns a new object of class '<em>Writer</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Writer</em>'. - * @generated - */ - Writer createWriter(); - - /** - * Returns a new object of class '<em>Book On Tape</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Book On Tape</em>'. - * @generated - */ - BookOnTape createBookOnTape(); - - /** - * Returns a new object of class '<em>Video Cassette</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Video Cassette</em>'. - * @generated - */ - VideoCassette createVideoCassette(); - - /** - * Returns a new object of class '<em>Borrower</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Borrower</em>'. - * @generated - */ - Borrower createBorrower(); - - /** - * Returns a new object of class '<em>Person</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Person</em>'. - * @generated - */ - Person createPerson(); - - /** - * Returns a new object of class '<em>Employee</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Employee</em>'. - * @generated - */ - Employee createEmployee(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - ExtlibraryPackage getExtlibraryPackage(); - -} //ExtlibraryFactory diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/ExtlibraryPackage.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/ExtlibraryPackage.java deleted file mode 100644 index 9ec4c4e20..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/ExtlibraryPackage.java +++ /dev/null @@ -1,1773 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryPackage.java,v 1.3 2010/03/03 14:34:11 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryFactory - * @model kind="package" - * @generated - */ -public interface ExtlibraryPackage extends EPackage { - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "extlibrary"; - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "http://www.eclipse.org/emf/teneo/hibernate/examples/extlibrary"; - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "extlib"; - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - ExtlibraryPackage eINSTANCE = org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ItemImpl <em>Item</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ItemImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getItem() - * @generated - */ - int ITEM = 3; - - /** - * The feature id for the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ITEM__PUBLICATION_DATE = 0; - - /** - * The number of structural features of the '<em>Item</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ITEM_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.CirculatingItemImpl <em>Circulating Item</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.CirculatingItemImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getCirculatingItem() - * @generated - */ - int CIRCULATING_ITEM = 5; - - /** - * The feature id for the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CIRCULATING_ITEM__PUBLICATION_DATE = ITEM__PUBLICATION_DATE; - - /** - * The feature id for the '<em><b>Copies</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CIRCULATING_ITEM__COPIES = ITEM_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Borrowers</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CIRCULATING_ITEM__BORROWERS = ITEM_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Circulating Item</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CIRCULATING_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookImpl <em>Book</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBook() - * @generated - */ - int BOOK = 0; - - /** - * The feature id for the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK__PUBLICATION_DATE = CIRCULATING_ITEM__PUBLICATION_DATE; - - /** - * The feature id for the '<em><b>Copies</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK__COPIES = CIRCULATING_ITEM__COPIES; - - /** - * The feature id for the '<em><b>Borrowers</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK__BORROWERS = CIRCULATING_ITEM__BORROWERS; - - /** - * The feature id for the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK__TITLE = CIRCULATING_ITEM_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Pages</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK__PAGES = CIRCULATING_ITEM_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Category</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK__CATEGORY = CIRCULATING_ITEM_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Author</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK__AUTHOR = CIRCULATING_ITEM_FEATURE_COUNT + 3; - - /** - * The number of structural features of the '<em>Book</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_FEATURE_COUNT = CIRCULATING_ITEM_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable <em>Addressable</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getAddressable() - * @generated - */ - int ADDRESSABLE = 13; - - /** - * The feature id for the '<em><b>Address</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADDRESSABLE__ADDRESS = 0; - - /** - * The number of structural features of the '<em>Addressable</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADDRESSABLE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl <em>Library</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getLibrary() - * @generated - */ - int LIBRARY = 1; - - /** - * The feature id for the '<em><b>Address</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__ADDRESS = ADDRESSABLE__ADDRESS; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__NAME = ADDRESSABLE_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Writers</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__WRITERS = ADDRESSABLE_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Employees</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__EMPLOYEES = ADDRESSABLE_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Borrowers</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__BORROWERS = ADDRESSABLE_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Stock</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__STOCK = ADDRESSABLE_FEATURE_COUNT + 4; - - /** - * The feature id for the '<em><b>Books</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__BOOKS = ADDRESSABLE_FEATURE_COUNT + 5; - - /** - * The feature id for the '<em><b>People</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY__PEOPLE = ADDRESSABLE_FEATURE_COUNT + 6; - - /** - * The number of structural features of the '<em>Library</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LIBRARY_FEATURE_COUNT = ADDRESSABLE_FEATURE_COUNT + 7; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PersonImpl <em>Person</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PersonImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getPerson() - * @generated - */ - int PERSON = 11; - - /** - * The feature id for the '<em><b>Address</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERSON__ADDRESS = ADDRESSABLE__ADDRESS; - - /** - * The feature id for the '<em><b>First Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERSON__FIRST_NAME = ADDRESSABLE_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Last Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERSON__LAST_NAME = ADDRESSABLE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Person</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERSON_FEATURE_COUNT = ADDRESSABLE_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.WriterImpl <em>Writer</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.WriterImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getWriter() - * @generated - */ - int WRITER = 2; - - /** - * The feature id for the '<em><b>Address</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WRITER__ADDRESS = PERSON__ADDRESS; - - /** - * The feature id for the '<em><b>First Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WRITER__FIRST_NAME = PERSON__FIRST_NAME; - - /** - * The feature id for the '<em><b>Last Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WRITER__LAST_NAME = PERSON__LAST_NAME; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WRITER__NAME = PERSON_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Books</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WRITER__BOOKS = PERSON_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Writer</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WRITER_FEATURE_COUNT = PERSON_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable <em>Lendable</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getLendable() - * @generated - */ - int LENDABLE = 4; - - /** - * The feature id for the '<em><b>Copies</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LENDABLE__COPIES = 0; - - /** - * The feature id for the '<em><b>Borrowers</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LENDABLE__BORROWERS = 1; - - /** - * The number of structural features of the '<em>Lendable</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LENDABLE_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PeriodicalImpl <em>Periodical</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PeriodicalImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getPeriodical() - * @generated - */ - int PERIODICAL = 6; - - /** - * The feature id for the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERIODICAL__PUBLICATION_DATE = ITEM__PUBLICATION_DATE; - - /** - * The feature id for the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERIODICAL__TITLE = ITEM_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Issues Per Year</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERIODICAL__ISSUES_PER_YEAR = ITEM_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Periodical</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PERIODICAL_FEATURE_COUNT = ITEM_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.AudioVisualItemImpl <em>Audio Visual Item</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.AudioVisualItemImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getAudioVisualItem() - * @generated - */ - int AUDIO_VISUAL_ITEM = 7; - - /** - * The feature id for the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUDIO_VISUAL_ITEM__PUBLICATION_DATE = CIRCULATING_ITEM__PUBLICATION_DATE; - - /** - * The feature id for the '<em><b>Copies</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUDIO_VISUAL_ITEM__COPIES = CIRCULATING_ITEM__COPIES; - - /** - * The feature id for the '<em><b>Borrowers</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUDIO_VISUAL_ITEM__BORROWERS = CIRCULATING_ITEM__BORROWERS; - - /** - * The feature id for the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUDIO_VISUAL_ITEM__TITLE = CIRCULATING_ITEM_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Minutes Length</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUDIO_VISUAL_ITEM__MINUTES_LENGTH = CIRCULATING_ITEM_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Damaged</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUDIO_VISUAL_ITEM__DAMAGED = CIRCULATING_ITEM_FEATURE_COUNT + 2; - - /** - * The number of structural features of the '<em>Audio Visual Item</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUDIO_VISUAL_ITEM_FEATURE_COUNT = CIRCULATING_ITEM_FEATURE_COUNT + 3; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookOnTapeImpl <em>Book On Tape</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookOnTapeImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBookOnTape() - * @generated - */ - int BOOK_ON_TAPE = 8; - - /** - * The feature id for the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__PUBLICATION_DATE = AUDIO_VISUAL_ITEM__PUBLICATION_DATE; - - /** - * The feature id for the '<em><b>Copies</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__COPIES = AUDIO_VISUAL_ITEM__COPIES; - - /** - * The feature id for the '<em><b>Borrowers</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__BORROWERS = AUDIO_VISUAL_ITEM__BORROWERS; - - /** - * The feature id for the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__TITLE = AUDIO_VISUAL_ITEM__TITLE; - - /** - * The feature id for the '<em><b>Minutes Length</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__MINUTES_LENGTH = AUDIO_VISUAL_ITEM__MINUTES_LENGTH; - - /** - * The feature id for the '<em><b>Damaged</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__DAMAGED = AUDIO_VISUAL_ITEM__DAMAGED; - - /** - * The feature id for the '<em><b>Reader</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__READER = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Book Author</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE__BOOK_AUTHOR = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Book On Tape</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOK_ON_TAPE_FEATURE_COUNT = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.VideoCassetteImpl <em>Video Cassette</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.VideoCassetteImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getVideoCassette() - * @generated - */ - int VIDEO_CASSETTE = 9; - - /** - * The feature id for the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE__PUBLICATION_DATE = AUDIO_VISUAL_ITEM__PUBLICATION_DATE; - - /** - * The feature id for the '<em><b>Copies</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE__COPIES = AUDIO_VISUAL_ITEM__COPIES; - - /** - * The feature id for the '<em><b>Borrowers</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE__BORROWERS = AUDIO_VISUAL_ITEM__BORROWERS; - - /** - * The feature id for the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE__TITLE = AUDIO_VISUAL_ITEM__TITLE; - - /** - * The feature id for the '<em><b>Minutes Length</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE__MINUTES_LENGTH = AUDIO_VISUAL_ITEM__MINUTES_LENGTH; - - /** - * The feature id for the '<em><b>Damaged</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE__DAMAGED = AUDIO_VISUAL_ITEM__DAMAGED; - - /** - * The feature id for the '<em><b>Cast</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE__CAST = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Video Cassette</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VIDEO_CASSETTE_FEATURE_COUNT = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BorrowerImpl <em>Borrower</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BorrowerImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBorrower() - * @generated - */ - int BORROWER = 10; - - /** - * The feature id for the '<em><b>Address</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BORROWER__ADDRESS = PERSON__ADDRESS; - - /** - * The feature id for the '<em><b>First Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BORROWER__FIRST_NAME = PERSON__FIRST_NAME; - - /** - * The feature id for the '<em><b>Last Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BORROWER__LAST_NAME = PERSON__LAST_NAME; - - /** - * The feature id for the '<em><b>Borrowed</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BORROWER__BORROWED = PERSON_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Borrower</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BORROWER_FEATURE_COUNT = PERSON_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.EmployeeImpl <em>Employee</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.EmployeeImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getEmployee() - * @generated - */ - int EMPLOYEE = 12; - - /** - * The feature id for the '<em><b>Address</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EMPLOYEE__ADDRESS = PERSON__ADDRESS; - - /** - * The feature id for the '<em><b>First Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EMPLOYEE__FIRST_NAME = PERSON__FIRST_NAME; - - /** - * The feature id for the '<em><b>Last Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EMPLOYEE__LAST_NAME = PERSON__LAST_NAME; - - /** - * The feature id for the '<em><b>Manager</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EMPLOYEE__MANAGER = PERSON_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Employee</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EMPLOYEE_FEATURE_COUNT = PERSON_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory <em>Book Category</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBookCategory() - * @generated - */ - int BOOK_CATEGORY = 14; - - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book <em>Book</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Book</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book - * @generated - */ - EClass getBook(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getTitle <em>Title</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Title</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getTitle() - * @see #getBook() - * @generated - */ - EAttribute getBook_Title(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getPages <em>Pages</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Pages</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getPages() - * @see #getBook() - * @generated - */ - EAttribute getBook_Pages(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getCategory <em>Category</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Category</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getCategory() - * @see #getBook() - * @generated - */ - EAttribute getBook_Category(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getAuthor <em>Author</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Author</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getAuthor() - * @see #getBook() - * @generated - */ - EReference getBook_Author(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library <em>Library</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Library</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library - * @generated - */ - EClass getLibrary(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getName() - * @see #getLibrary() - * @generated - */ - EAttribute getLibrary_Name(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getWriters <em>Writers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Writers</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getWriters() - * @see #getLibrary() - * @generated - */ - EReference getLibrary_Writers(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getEmployees <em>Employees</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Employees</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getEmployees() - * @see #getLibrary() - * @generated - */ - EReference getLibrary_Employees(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getBorrowers <em>Borrowers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Borrowers</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getBorrowers() - * @see #getLibrary() - * @generated - */ - EReference getLibrary_Borrowers(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getStock <em>Stock</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Stock</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getStock() - * @see #getLibrary() - * @generated - */ - EReference getLibrary_Stock(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getBooks <em>Books</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference list '<em>Books</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getBooks() - * @see #getLibrary() - * @generated - */ - EReference getLibrary_Books(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getPeople <em>People</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>People</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getPeople() - * @see #getLibrary() - * @generated - */ - EAttribute getLibrary_People(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer <em>Writer</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Writer</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer - * @generated - */ - EClass getWriter(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getName() - * @see #getWriter() - * @generated - */ - EAttribute getWriter_Name(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getBooks <em>Books</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference list '<em>Books</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getBooks() - * @see #getWriter() - * @generated - */ - EReference getWriter_Books(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item <em>Item</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Item</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item - * @generated - */ - EClass getItem(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item#getPublicationDate <em>Publication Date</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Publication Date</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item#getPublicationDate() - * @see #getItem() - * @generated - */ - EAttribute getItem_PublicationDate(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable <em>Lendable</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Lendable</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable - * @generated - */ - EClass getLendable(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getCopies <em>Copies</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Copies</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getCopies() - * @see #getLendable() - * @generated - */ - EAttribute getLendable_Copies(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getBorrowers <em>Borrowers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference list '<em>Borrowers</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getBorrowers() - * @see #getLendable() - * @generated - */ - EReference getLendable_Borrowers(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.CirculatingItem <em>Circulating Item</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Circulating Item</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.CirculatingItem - * @generated - */ - EClass getCirculatingItem(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical <em>Periodical</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Periodical</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical - * @generated - */ - EClass getPeriodical(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getTitle <em>Title</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Title</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getTitle() - * @see #getPeriodical() - * @generated - */ - EAttribute getPeriodical_Title(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getIssuesPerYear <em>Issues Per Year</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Issues Per Year</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getIssuesPerYear() - * @see #getPeriodical() - * @generated - */ - EAttribute getPeriodical_IssuesPerYear(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem <em>Audio Visual Item</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Audio Visual Item</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem - * @generated - */ - EClass getAudioVisualItem(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getTitle <em>Title</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Title</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getTitle() - * @see #getAudioVisualItem() - * @generated - */ - EAttribute getAudioVisualItem_Title(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getMinutesLength <em>Minutes Length</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Minutes Length</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#getMinutesLength() - * @see #getAudioVisualItem() - * @generated - */ - EAttribute getAudioVisualItem_MinutesLength(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#isDamaged <em>Damaged</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Damaged</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem#isDamaged() - * @see #getAudioVisualItem() - * @generated - */ - EAttribute getAudioVisualItem_Damaged(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape <em>Book On Tape</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Book On Tape</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape - * @generated - */ - EClass getBookOnTape(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getReader <em>Reader</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Reader</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getReader() - * @see #getBookOnTape() - * @generated - */ - EReference getBookOnTape_Reader(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getBookAuthor <em>Book Author</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Book Author</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape#getBookAuthor() - * @see #getBookOnTape() - * @generated - */ - EReference getBookOnTape_BookAuthor(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette <em>Video Cassette</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Video Cassette</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette - * @generated - */ - EClass getVideoCassette(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette#getCast <em>Cast</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference list '<em>Cast</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette#getCast() - * @see #getVideoCassette() - * @generated - */ - EReference getVideoCassette_Cast(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower <em>Borrower</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Borrower</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower - * @generated - */ - EClass getBorrower(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower#getBorrowed <em>Borrowed</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference list '<em>Borrowed</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower#getBorrowed() - * @see #getBorrower() - * @generated - */ - EReference getBorrower_Borrowed(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person <em>Person</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Person</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person - * @generated - */ - EClass getPerson(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getFirstName <em>First Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>First Name</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getFirstName() - * @see #getPerson() - * @generated - */ - EAttribute getPerson_FirstName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getLastName <em>Last Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Last Name</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getLastName() - * @see #getPerson() - * @generated - */ - EAttribute getPerson_LastName(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee <em>Employee</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Employee</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee - * @generated - */ - EClass getEmployee(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee#getManager <em>Manager</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Manager</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee#getManager() - * @see #getEmployee() - * @generated - */ - EReference getEmployee_Manager(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable <em>Addressable</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Addressable</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable - * @generated - */ - EClass getAddressable(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable#getAddress <em>Address</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Address</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable#getAddress() - * @see #getAddressable() - * @generated - */ - EAttribute getAddressable_Address(); - - /** - * Returns the meta object for enum '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory <em>Book Category</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Book Category</em>'. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory - * @generated - */ - EEnum getBookCategory(); - - /** - * 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 - */ - ExtlibraryFactory getExtlibraryFactory(); - - /** - * <!-- 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.hibernate.examples.extlibrary.impl.BookImpl <em>Book</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBook() - * @generated - */ - EClass BOOK = eINSTANCE.getBook(); - - /** - * The meta object literal for the '<em><b>Title</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute BOOK__TITLE = eINSTANCE.getBook_Title(); - - /** - * The meta object literal for the '<em><b>Pages</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute BOOK__PAGES = eINSTANCE.getBook_Pages(); - - /** - * The meta object literal for the '<em><b>Category</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute BOOK__CATEGORY = eINSTANCE.getBook_Category(); - - /** - * The meta object literal for the '<em><b>Author</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference BOOK__AUTHOR = eINSTANCE.getBook_Author(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl <em>Library</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getLibrary() - * @generated - */ - EClass LIBRARY = eINSTANCE.getLibrary(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute LIBRARY__NAME = eINSTANCE.getLibrary_Name(); - - /** - * The meta object literal for the '<em><b>Writers</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference LIBRARY__WRITERS = eINSTANCE.getLibrary_Writers(); - - /** - * The meta object literal for the '<em><b>Employees</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference LIBRARY__EMPLOYEES = eINSTANCE.getLibrary_Employees(); - - /** - * The meta object literal for the '<em><b>Borrowers</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference LIBRARY__BORROWERS = eINSTANCE.getLibrary_Borrowers(); - - /** - * The meta object literal for the '<em><b>Stock</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference LIBRARY__STOCK = eINSTANCE.getLibrary_Stock(); - - /** - * The meta object literal for the '<em><b>Books</b></em>' reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference LIBRARY__BOOKS = eINSTANCE.getLibrary_Books(); - - /** - * The meta object literal for the '<em><b>People</b></em>' attribute list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute LIBRARY__PEOPLE = eINSTANCE.getLibrary_People(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.WriterImpl <em>Writer</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.WriterImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getWriter() - * @generated - */ - EClass WRITER = eINSTANCE.getWriter(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute WRITER__NAME = eINSTANCE.getWriter_Name(); - - /** - * The meta object literal for the '<em><b>Books</b></em>' reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference WRITER__BOOKS = eINSTANCE.getWriter_Books(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ItemImpl <em>Item</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ItemImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getItem() - * @generated - */ - EClass ITEM = eINSTANCE.getItem(); - - /** - * The meta object literal for the '<em><b>Publication Date</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute ITEM__PUBLICATION_DATE = eINSTANCE.getItem_PublicationDate(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable <em>Lendable</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getLendable() - * @generated - */ - EClass LENDABLE = eINSTANCE.getLendable(); - - /** - * The meta object literal for the '<em><b>Copies</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute LENDABLE__COPIES = eINSTANCE.getLendable_Copies(); - - /** - * The meta object literal for the '<em><b>Borrowers</b></em>' reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference LENDABLE__BORROWERS = eINSTANCE.getLendable_Borrowers(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.CirculatingItemImpl <em>Circulating Item</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.CirculatingItemImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getCirculatingItem() - * @generated - */ - EClass CIRCULATING_ITEM = eINSTANCE.getCirculatingItem(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PeriodicalImpl <em>Periodical</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PeriodicalImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getPeriodical() - * @generated - */ - EClass PERIODICAL = eINSTANCE.getPeriodical(); - - /** - * The meta object literal for the '<em><b>Title</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute PERIODICAL__TITLE = eINSTANCE.getPeriodical_Title(); - - /** - * The meta object literal for the '<em><b>Issues Per Year</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute PERIODICAL__ISSUES_PER_YEAR = eINSTANCE.getPeriodical_IssuesPerYear(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.AudioVisualItemImpl <em>Audio Visual Item</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.AudioVisualItemImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getAudioVisualItem() - * @generated - */ - EClass AUDIO_VISUAL_ITEM = eINSTANCE.getAudioVisualItem(); - - /** - * The meta object literal for the '<em><b>Title</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute AUDIO_VISUAL_ITEM__TITLE = eINSTANCE.getAudioVisualItem_Title(); - - /** - * The meta object literal for the '<em><b>Minutes Length</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute AUDIO_VISUAL_ITEM__MINUTES_LENGTH = eINSTANCE.getAudioVisualItem_MinutesLength(); - - /** - * The meta object literal for the '<em><b>Damaged</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute AUDIO_VISUAL_ITEM__DAMAGED = eINSTANCE.getAudioVisualItem_Damaged(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookOnTapeImpl <em>Book On Tape</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookOnTapeImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBookOnTape() - * @generated - */ - EClass BOOK_ON_TAPE = eINSTANCE.getBookOnTape(); - - /** - * The meta object literal for the '<em><b>Reader</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference BOOK_ON_TAPE__READER = eINSTANCE.getBookOnTape_Reader(); - - /** - * The meta object literal for the '<em><b>Book Author</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference BOOK_ON_TAPE__BOOK_AUTHOR = eINSTANCE.getBookOnTape_BookAuthor(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.VideoCassetteImpl <em>Video Cassette</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.VideoCassetteImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getVideoCassette() - * @generated - */ - EClass VIDEO_CASSETTE = eINSTANCE.getVideoCassette(); - - /** - * The meta object literal for the '<em><b>Cast</b></em>' reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference VIDEO_CASSETTE__CAST = eINSTANCE.getVideoCassette_Cast(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BorrowerImpl <em>Borrower</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BorrowerImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBorrower() - * @generated - */ - EClass BORROWER = eINSTANCE.getBorrower(); - - /** - * The meta object literal for the '<em><b>Borrowed</b></em>' reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference BORROWER__BORROWED = eINSTANCE.getBorrower_Borrowed(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PersonImpl <em>Person</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PersonImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getPerson() - * @generated - */ - EClass PERSON = eINSTANCE.getPerson(); - - /** - * The meta object literal for the '<em><b>First Name</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute PERSON__FIRST_NAME = eINSTANCE.getPerson_FirstName(); - - /** - * The meta object literal for the '<em><b>Last Name</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute PERSON__LAST_NAME = eINSTANCE.getPerson_LastName(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.EmployeeImpl <em>Employee</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.EmployeeImpl - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getEmployee() - * @generated - */ - EClass EMPLOYEE = eINSTANCE.getEmployee(); - - /** - * The meta object literal for the '<em><b>Manager</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference EMPLOYEE__MANAGER = eINSTANCE.getEmployee_Manager(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable <em>Addressable</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getAddressable() - * @generated - */ - EClass ADDRESSABLE = eINSTANCE.getAddressable(); - - /** - * The meta object literal for the '<em><b>Address</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute ADDRESSABLE__ADDRESS = eINSTANCE.getAddressable_Address(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory <em>Book Category</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ExtlibraryPackageImpl#getBookCategory() - * @generated - */ - EEnum BOOK_CATEGORY = eINSTANCE.getBookCategory(); - - } - -} //ExtlibraryPackage diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Item.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Item.java deleted file mode 100644 index 880aed79b..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Item.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Item.java,v 1.2 2010/03/02 06:08:39 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import java.util.Date; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Item</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item#getPublicationDate <em>Publication Date</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getItem() - * @model abstract="true" - * @generated - */ -public interface Item extends EObject { - /** - * Returns the value of the '<em><b>Publication Date</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Publication Date</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Publication Date</em>' attribute. - * @see #setPublicationDate(Date) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getItem_PublicationDate() - * @model - * @generated - */ - Date getPublicationDate(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item#getPublicationDate <em>Publication Date</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Publication Date</em>' attribute. - * @see #getPublicationDate() - * @generated - */ - void setPublicationDate(Date value); - -} // Item diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Lendable.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Lendable.java deleted file mode 100644 index f78f061b0..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Lendable.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Lendable.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Lendable</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getCopies <em>Copies</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getBorrowers <em>Borrowers</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLendable() - * @model interface="true" abstract="true" - * @generated - */ -public interface Lendable extends EObject { - /** - * Returns the value of the '<em><b>Copies</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Copies</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Copies</em>' attribute. - * @see #setCopies(int) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLendable_Copies() - * @model required="true" - * @generated - */ - int getCopies(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable#getCopies <em>Copies</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Copies</em>' attribute. - * @see #getCopies() - * @generated - */ - void setCopies(int value); - - /** - * Returns the value of the '<em><b>Borrowers</b></em>' reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower}. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower#getBorrowed <em>Borrowed</em>}'. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Borrowers</em>' reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Borrowers</em>' reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLendable_Borrowers() - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower#getBorrowed - * @model opposite="borrowed" ordered="false" - * @generated - */ - EList<Borrower> getBorrowers(); - -} // Lendable diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Library.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Library.java deleted file mode 100644 index 59628accc..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Library.java +++ /dev/null @@ -1,163 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Library.java,v 1.5 2010/03/03 14:34:11 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.util.FeatureMap; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Library</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getWriters <em>Writers</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getEmployees <em>Employees</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getBorrowers <em>Borrowers</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getStock <em>Stock</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getBooks <em>Books</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getPeople <em>People</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary() - * @model - * @generated - */ -public interface Library extends Addressable { - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Writers</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Writers</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Writers</em>' containment reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary_Writers() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="group='#people'" - * annotation="teneo.jpa value='@IdBag'" - * @generated - */ - EList<Writer> getWriters(); - - /** - * Returns the value of the '<em><b>Employees</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Employees</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Employees</em>' containment reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary_Employees() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="group='#people'" - * @generated - */ - EList<Employee> getEmployees(); - - /** - * Returns the value of the '<em><b>Borrowers</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Borrowers</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Borrowers</em>' containment reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary_Borrowers() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="group='#people'" - * @generated - */ - EList<Borrower> getBorrowers(); - - /** - * Returns the value of the '<em><b>Stock</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Stock</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Stock</em>' containment reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary_Stock() - * @model containment="true" ordered="false" - * @generated - */ - EList<Item> getStock(); - - /** - * Returns the value of the '<em><b>Books</b></em>' reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Books</em>' reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Books</em>' reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary_Books() - * @model ordered="false" - * @generated - */ - EList<Book> getBooks(); - - /** - * Returns the value of the '<em><b>People</b></em>' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>People</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>People</em>' attribute list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getLibrary_People() - * @model dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='group'" - * @generated - */ - FeatureMap getPeople(); - -} // Library diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Periodical.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Periodical.java deleted file mode 100644 index 0d8d25de9..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Periodical.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Periodical.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Periodical</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getTitle <em>Title</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getIssuesPerYear <em>Issues Per Year</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getPeriodical() - * @model abstract="true" - * @generated - */ -public interface Periodical extends Item { - /** - * Returns the value of the '<em><b>Title</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Title</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Title</em>' attribute. - * @see #setTitle(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getPeriodical_Title() - * @model - * @generated - */ - String getTitle(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getTitle <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Title</em>' attribute. - * @see #getTitle() - * @generated - */ - void setTitle(String value); - - /** - * Returns the value of the '<em><b>Issues Per Year</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Issues Per Year</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Issues Per Year</em>' attribute. - * @see #setIssuesPerYear(int) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getPeriodical_IssuesPerYear() - * @model required="true" - * @generated - */ - int getIssuesPerYear(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical#getIssuesPerYear <em>Issues Per Year</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Issues Per Year</em>' attribute. - * @see #getIssuesPerYear() - * @generated - */ - void setIssuesPerYear(int value); - -} // Periodical diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Person.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Person.java deleted file mode 100644 index ab7904498..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Person.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Person.java,v 1.2 2010/03/02 06:08:40 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Person</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getFirstName <em>First Name</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getLastName <em>Last Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getPerson() - * @model - * @generated - */ -public interface Person extends Addressable { - /** - * Returns the value of the '<em><b>First Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>First Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>First Name</em>' attribute. - * @see #setFirstName(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getPerson_FirstName() - * @model required="true" - * @generated - */ - String getFirstName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getFirstName <em>First Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>First Name</em>' attribute. - * @see #getFirstName() - * @generated - */ - void setFirstName(String value); - - /** - * Returns the value of the '<em><b>Last Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Last Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Last Name</em>' attribute. - * @see #setLastName(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getPerson_LastName() - * @model required="true" - * @generated - */ - String getLastName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person#getLastName <em>Last Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Last Name</em>' attribute. - * @see #getLastName() - * @generated - */ - void setLastName(String value); - -} // Person diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/VideoCassette.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/VideoCassette.java deleted file mode 100644 index d51841715..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/VideoCassette.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: VideoCassette.java,v 1.2 2010/03/02 06:08:40 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Video Cassette</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette#getCast <em>Cast</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getVideoCassette() - * @model - * @generated - */ -public interface VideoCassette extends AudioVisualItem { - /** - * Returns the value of the '<em><b>Cast</b></em>' reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Cast</em>' reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Cast</em>' reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getVideoCassette_Cast() - * @model - * @generated - */ - EList<Person> getCast(); - -} // VideoCassette diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Writer.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Writer.java deleted file mode 100644 index ffbc9ae64..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/Writer.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: Writer.java,v 1.4 2010/03/03 12:29:32 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Writer</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getBooks <em>Books</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getWriter() - * @model - * @generated - */ -public interface Writer extends Person { - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getWriter_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Books</b></em>' reference list. - * The list contents are of type {@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book}. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getAuthor <em>Author</em>}'. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Books</em>' reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Books</em>' reference list. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage#getWriter_Books() - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book#getAuthor - * @model opposite="author" - * @generated - */ - EList<Book> getBooks(); - -} // Writer diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/AudioVisualItemImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/AudioVisualItemImpl.java deleted file mode 100644 index 37d081a26..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/AudioVisualItemImpl.java +++ /dev/null @@ -1,274 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: AudioVisualItemImpl.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.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.teneo.hibernate.examples.extlibrary.AudioVisualItem; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Audio Visual Item</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.AudioVisualItemImpl#getTitle <em>Title</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.AudioVisualItemImpl#getMinutesLength <em>Minutes Length</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.AudioVisualItemImpl#isDamaged <em>Damaged</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class AudioVisualItemImpl extends CirculatingItemImpl implements AudioVisualItem { - /** - * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTitle() - * @generated - * @ordered - */ - protected static final String TITLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTitle() - * @generated - * @ordered - */ - protected String title = TITLE_EDEFAULT; - - /** - * The default value of the '{@link #getMinutesLength() <em>Minutes Length</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMinutesLength() - * @generated - * @ordered - */ - protected static final int MINUTES_LENGTH_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMinutesLength() <em>Minutes Length</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMinutesLength() - * @generated - * @ordered - */ - protected int minutesLength = MINUTES_LENGTH_EDEFAULT; - - /** - * The default value of the '{@link #isDamaged() <em>Damaged</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDamaged() - * @generated - * @ordered - */ - protected static final boolean DAMAGED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDamaged() <em>Damaged</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDamaged() - * @generated - * @ordered - */ - protected boolean damaged = DAMAGED_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AudioVisualItemImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.AUDIO_VISUAL_ITEM; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getTitle() { - return title; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTitle(String newTitle) { - String oldTitle = title; - title = newTitle; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.AUDIO_VISUAL_ITEM__TITLE, oldTitle, title)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getMinutesLength() { - return minutesLength; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMinutesLength(int newMinutesLength) { - int oldMinutesLength = minutesLength; - minutesLength = newMinutesLength; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH, oldMinutesLength, minutesLength)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isDamaged() { - return damaged; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDamaged(boolean newDamaged) { - boolean oldDamaged = damaged; - damaged = newDamaged; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED, oldDamaged, damaged)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - return getTitle(); - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - return getMinutesLength(); - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - return isDamaged(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - setTitle((String)newValue); - return; - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - setMinutesLength((Integer)newValue); - return; - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - setDamaged((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - setTitle(TITLE_EDEFAULT); - return; - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - setMinutesLength(MINUTES_LENGTH_EDEFAULT); - return; - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - setDamaged(DAMAGED_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - return minutesLength != MINUTES_LENGTH_EDEFAULT; - case ExtlibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - return damaged != DAMAGED_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (title: "); - result.append(title); - result.append(", minutesLength: "); - result.append(minutesLength); - result.append(", damaged: "); - result.append(damaged); - result.append(')'); - return result.toString(); - } - -} //AudioVisualItemImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BookImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BookImpl.java deleted file mode 100644 index 2d531e8ef..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BookImpl.java +++ /dev/null @@ -1,424 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: BookImpl.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Book</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookImpl#getTitle <em>Title</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookImpl#getPages <em>Pages</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookImpl#getCategory <em>Category</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookImpl#getAuthor <em>Author</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class BookImpl extends CirculatingItemImpl implements Book { - /** - * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTitle() - * @generated - * @ordered - */ - protected static final String TITLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTitle() - * @generated - * @ordered - */ - protected String title = TITLE_EDEFAULT; - - /** - * The default value of the '{@link #getPages() <em>Pages</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPages() - * @generated - * @ordered - */ - protected static final int PAGES_EDEFAULT = 100; - - /** - * The cached value of the '{@link #getPages() <em>Pages</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPages() - * @generated - * @ordered - */ - protected int pages = PAGES_EDEFAULT; - - /** - * The default value of the '{@link #getCategory() <em>Category</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCategory() - * @generated - * @ordered - */ - protected static final BookCategory CATEGORY_EDEFAULT = BookCategory.MYSTERY; - - /** - * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCategory() - * @generated - * @ordered - */ - protected BookCategory category = CATEGORY_EDEFAULT; - - /** - * This is true if the Category attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean categoryESet; - - /** - * The cached value of the '{@link #getAuthor() <em>Author</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthor() - * @generated - * @ordered - */ - protected Writer author; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BookImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.BOOK; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getTitle() { - return title; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTitle(String newTitle) { - String oldTitle = title; - title = newTitle; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.BOOK__TITLE, oldTitle, title)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getPages() { - return pages; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPages(int newPages) { - int oldPages = pages; - pages = newPages; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.BOOK__PAGES, oldPages, pages)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BookCategory getCategory() { - return category; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setCategory(BookCategory newCategory) { - BookCategory oldCategory = category; - category = newCategory == null ? CATEGORY_EDEFAULT : newCategory; - boolean oldCategoryESet = categoryESet; - categoryESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.BOOK__CATEGORY, oldCategory, category, !oldCategoryESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetCategory() { - BookCategory oldCategory = category; - boolean oldCategoryESet = categoryESet; - category = CATEGORY_EDEFAULT; - categoryESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, ExtlibraryPackage.BOOK__CATEGORY, oldCategory, CATEGORY_EDEFAULT, oldCategoryESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetCategory() { - return categoryESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Writer getAuthor() { - if (author != null && author.eIsProxy()) { - InternalEObject oldAuthor = (InternalEObject)author; - author = (Writer)eResolveProxy(oldAuthor); - if (author != oldAuthor) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtlibraryPackage.BOOK__AUTHOR, oldAuthor, author)); - } - } - return author; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Writer basicGetAuthor() { - return author; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs) { - Writer oldAuthor = author; - author = newAuthor; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.BOOK__AUTHOR, oldAuthor, newAuthor); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuthor(Writer newAuthor) { - if (newAuthor != author) { - NotificationChain msgs = null; - if (author != null) - msgs = ((InternalEObject)author).eInverseRemove(this, ExtlibraryPackage.WRITER__BOOKS, Writer.class, msgs); - if (newAuthor != null) - msgs = ((InternalEObject)newAuthor).eInverseAdd(this, ExtlibraryPackage.WRITER__BOOKS, Writer.class, msgs); - msgs = basicSetAuthor(newAuthor, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.BOOK__AUTHOR, newAuthor, newAuthor)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.BOOK__AUTHOR: - if (author != null) - msgs = ((InternalEObject)author).eInverseRemove(this, ExtlibraryPackage.WRITER__BOOKS, Writer.class, msgs); - return basicSetAuthor((Writer)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.BOOK__AUTHOR: - return basicSetAuthor(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.BOOK__TITLE: - return getTitle(); - case ExtlibraryPackage.BOOK__PAGES: - return getPages(); - case ExtlibraryPackage.BOOK__CATEGORY: - return getCategory(); - case ExtlibraryPackage.BOOK__AUTHOR: - if (resolve) return getAuthor(); - return basicGetAuthor(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.BOOK__TITLE: - setTitle((String)newValue); - return; - case ExtlibraryPackage.BOOK__PAGES: - setPages((Integer)newValue); - return; - case ExtlibraryPackage.BOOK__CATEGORY: - setCategory((BookCategory)newValue); - return; - case ExtlibraryPackage.BOOK__AUTHOR: - setAuthor((Writer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.BOOK__TITLE: - setTitle(TITLE_EDEFAULT); - return; - case ExtlibraryPackage.BOOK__PAGES: - setPages(PAGES_EDEFAULT); - return; - case ExtlibraryPackage.BOOK__CATEGORY: - unsetCategory(); - return; - case ExtlibraryPackage.BOOK__AUTHOR: - setAuthor((Writer)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.BOOK__TITLE: - return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); - case ExtlibraryPackage.BOOK__PAGES: - return pages != PAGES_EDEFAULT; - case ExtlibraryPackage.BOOK__CATEGORY: - return isSetCategory(); - case ExtlibraryPackage.BOOK__AUTHOR: - return author != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (title: "); - result.append(title); - result.append(", pages: "); - result.append(pages); - result.append(", category: "); - if (categoryESet) result.append(category); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} //BookImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BookOnTapeImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BookOnTapeImpl.java deleted file mode 100644 index 5c9714185..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BookOnTapeImpl.java +++ /dev/null @@ -1,221 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: BookOnTapeImpl.java,v 1.2 2010/03/02 06:08:37 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Book On Tape</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookOnTapeImpl#getReader <em>Reader</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BookOnTapeImpl#getBookAuthor <em>Book Author</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class BookOnTapeImpl extends AudioVisualItemImpl implements BookOnTape { - /** - * The cached value of the '{@link #getReader() <em>Reader</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getReader() - * @generated - * @ordered - */ - protected Person reader; - - /** - * The cached value of the '{@link #getBookAuthor() <em>Book Author</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBookAuthor() - * @generated - * @ordered - */ - protected Writer bookAuthor; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BookOnTapeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.BOOK_ON_TAPE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Person getReader() { - if (reader != null && reader.eIsProxy()) { - InternalEObject oldReader = (InternalEObject)reader; - reader = (Person)eResolveProxy(oldReader); - if (reader != oldReader) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtlibraryPackage.BOOK_ON_TAPE__READER, oldReader, reader)); - } - } - return reader; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Person basicGetReader() { - return reader; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setReader(Person newReader) { - Person oldReader = reader; - reader = newReader; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.BOOK_ON_TAPE__READER, oldReader, reader)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Writer getBookAuthor() { - if (bookAuthor != null && bookAuthor.eIsProxy()) { - InternalEObject oldBookAuthor = (InternalEObject)bookAuthor; - bookAuthor = (Writer)eResolveProxy(oldBookAuthor); - if (bookAuthor != oldBookAuthor) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtlibraryPackage.BOOK_ON_TAPE__BOOK_AUTHOR, oldBookAuthor, bookAuthor)); - } - } - return bookAuthor; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Writer basicGetBookAuthor() { - return bookAuthor; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setBookAuthor(Writer newBookAuthor) { - Writer oldBookAuthor = bookAuthor; - bookAuthor = newBookAuthor; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.BOOK_ON_TAPE__BOOK_AUTHOR, oldBookAuthor, bookAuthor)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.BOOK_ON_TAPE__READER: - if (resolve) return getReader(); - return basicGetReader(); - case ExtlibraryPackage.BOOK_ON_TAPE__BOOK_AUTHOR: - if (resolve) return getBookAuthor(); - return basicGetBookAuthor(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.BOOK_ON_TAPE__READER: - setReader((Person)newValue); - return; - case ExtlibraryPackage.BOOK_ON_TAPE__BOOK_AUTHOR: - setBookAuthor((Writer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.BOOK_ON_TAPE__READER: - setReader((Person)null); - return; - case ExtlibraryPackage.BOOK_ON_TAPE__BOOK_AUTHOR: - setBookAuthor((Writer)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.BOOK_ON_TAPE__READER: - return reader != null; - case ExtlibraryPackage.BOOK_ON_TAPE__BOOK_AUTHOR: - return bookAuthor != null; - } - return super.eIsSet(featureID); - } - -} //BookOnTapeImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BorrowerImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BorrowerImpl.java deleted file mode 100644 index 40535ca14..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/BorrowerImpl.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: BorrowerImpl.java,v 1.2 2010/03/02 06:08:37 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Borrower</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.BorrowerImpl#getBorrowed <em>Borrowed</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class BorrowerImpl extends PersonImpl implements Borrower { - /** - * The cached value of the '{@link #getBorrowed() <em>Borrowed</em>}' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBorrowed() - * @generated - * @ordered - */ - protected EList<Lendable> borrowed; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BorrowerImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.BORROWER; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Lendable> getBorrowed() { - if (borrowed == null) { - borrowed = new EObjectWithInverseResolvingEList.ManyInverse<Lendable>(Lendable.class, this, ExtlibraryPackage.BORROWER__BORROWED, ExtlibraryPackage.LENDABLE__BORROWERS); - } - return borrowed; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.BORROWER__BORROWED: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getBorrowed()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.BORROWER__BORROWED: - return ((InternalEList<?>)getBorrowed()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.BORROWER__BORROWED: - return getBorrowed(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.BORROWER__BORROWED: - getBorrowed().clear(); - getBorrowed().addAll((Collection<? extends Lendable>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.BORROWER__BORROWED: - getBorrowed().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.BORROWER__BORROWED: - return borrowed != null && !borrowed.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //BorrowerImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/CirculatingItemImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/CirculatingItemImpl.java deleted file mode 100644 index e4e9c304e..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/CirculatingItemImpl.java +++ /dev/null @@ -1,275 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: CirculatingItemImpl.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.CirculatingItem; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Circulating Item</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.CirculatingItemImpl#getCopies <em>Copies</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.CirculatingItemImpl#getBorrowers <em>Borrowers</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class CirculatingItemImpl extends ItemImpl implements CirculatingItem { - /** - * The default value of the '{@link #getCopies() <em>Copies</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCopies() - * @generated - * @ordered - */ - protected static final int COPIES_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getCopies() <em>Copies</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCopies() - * @generated - * @ordered - */ - protected int copies = COPIES_EDEFAULT; - - /** - * The cached value of the '{@link #getBorrowers() <em>Borrowers</em>}' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBorrowers() - * @generated - * @ordered - */ - protected EList<Borrower> borrowers; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected CirculatingItemImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.CIRCULATING_ITEM; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getCopies() { - return copies; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setCopies(int newCopies) { - int oldCopies = copies; - copies = newCopies; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.CIRCULATING_ITEM__COPIES, oldCopies, copies)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Borrower> getBorrowers() { - if (borrowers == null) { - borrowers = new EObjectWithInverseResolvingEList.ManyInverse<Borrower>(Borrower.class, this, ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS, ExtlibraryPackage.BORROWER__BORROWED); - } - return borrowers; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getBorrowers()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS: - return ((InternalEList<?>)getBorrowers()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.CIRCULATING_ITEM__COPIES: - return getCopies(); - case ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS: - return getBorrowers(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.CIRCULATING_ITEM__COPIES: - setCopies((Integer)newValue); - return; - case ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS: - getBorrowers().clear(); - getBorrowers().addAll((Collection<? extends Borrower>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.CIRCULATING_ITEM__COPIES: - setCopies(COPIES_EDEFAULT); - return; - case ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS: - getBorrowers().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.CIRCULATING_ITEM__COPIES: - return copies != COPIES_EDEFAULT; - case ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS: - return borrowers != null && !borrowers.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { - if (baseClass == Lendable.class) { - switch (derivedFeatureID) { - case ExtlibraryPackage.CIRCULATING_ITEM__COPIES: return ExtlibraryPackage.LENDABLE__COPIES; - case ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS: return ExtlibraryPackage.LENDABLE__BORROWERS; - default: return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { - if (baseClass == Lendable.class) { - switch (baseFeatureID) { - case ExtlibraryPackage.LENDABLE__COPIES: return ExtlibraryPackage.CIRCULATING_ITEM__COPIES; - case ExtlibraryPackage.LENDABLE__BORROWERS: return ExtlibraryPackage.CIRCULATING_ITEM__BORROWERS; - default: return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (copies: "); - result.append(copies); - result.append(')'); - return result.toString(); - } - -} //CirculatingItemImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/EmployeeImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/EmployeeImpl.java deleted file mode 100644 index 774a5c9d8..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/EmployeeImpl.java +++ /dev/null @@ -1,159 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: EmployeeImpl.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Employee</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.EmployeeImpl#getManager <em>Manager</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class EmployeeImpl extends PersonImpl implements Employee { - /** - * The cached value of the '{@link #getManager() <em>Manager</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getManager() - * @generated - * @ordered - */ - protected Employee manager; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EmployeeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.EMPLOYEE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Employee getManager() { - if (manager != null && manager.eIsProxy()) { - InternalEObject oldManager = (InternalEObject)manager; - manager = (Employee)eResolveProxy(oldManager); - if (manager != oldManager) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtlibraryPackage.EMPLOYEE__MANAGER, oldManager, manager)); - } - } - return manager; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Employee basicGetManager() { - return manager; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setManager(Employee newManager) { - Employee oldManager = manager; - manager = newManager; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.EMPLOYEE__MANAGER, oldManager, manager)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.EMPLOYEE__MANAGER: - if (resolve) return getManager(); - return basicGetManager(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.EMPLOYEE__MANAGER: - setManager((Employee)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.EMPLOYEE__MANAGER: - setManager((Employee)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.EMPLOYEE__MANAGER: - return manager != null; - } - return super.eIsSet(featureID); - } - -} //EmployeeImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ExtlibraryFactoryImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ExtlibraryFactoryImpl.java deleted file mode 100644 index 323bfaba1..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ExtlibraryFactoryImpl.java +++ /dev/null @@ -1,227 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryFactoryImpl.java,v 1.2 2010/03/02 06:08:37 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -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.hibernate.examples.extlibrary.*; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class ExtlibraryFactoryImpl extends EFactoryImpl implements ExtlibraryFactory { - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static ExtlibraryFactory init() { - try { - ExtlibraryFactory theExtlibraryFactory = (ExtlibraryFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/hibernate/examples/extlibrary"); - if (theExtlibraryFactory != null) { - return theExtlibraryFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ExtlibraryFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExtlibraryFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ExtlibraryPackage.BOOK: return createBook(); - case ExtlibraryPackage.LIBRARY: return createLibrary(); - case ExtlibraryPackage.WRITER: return createWriter(); - case ExtlibraryPackage.BOOK_ON_TAPE: return createBookOnTape(); - case ExtlibraryPackage.VIDEO_CASSETTE: return createVideoCassette(); - case ExtlibraryPackage.BORROWER: return createBorrower(); - case ExtlibraryPackage.PERSON: return createPerson(); - case ExtlibraryPackage.EMPLOYEE: return createEmployee(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case ExtlibraryPackage.BOOK_CATEGORY: - return createBookCategoryFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case ExtlibraryPackage.BOOK_CATEGORY: - return convertBookCategoryToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Book createBook() { - BookImpl book = new BookImpl(); - return book; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Library createLibrary() { - LibraryImpl library = new LibraryImpl(); - return library; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Writer createWriter() { - WriterImpl writer = new WriterImpl(); - return writer; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BookOnTape createBookOnTape() { - BookOnTapeImpl bookOnTape = new BookOnTapeImpl(); - return bookOnTape; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public VideoCassette createVideoCassette() { - VideoCassetteImpl videoCassette = new VideoCassetteImpl(); - return videoCassette; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Borrower createBorrower() { - BorrowerImpl borrower = new BorrowerImpl(); - return borrower; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Person createPerson() { - PersonImpl person = new PersonImpl(); - return person; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Employee createEmployee() { - EmployeeImpl employee = new EmployeeImpl(); - return employee; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BookCategory createBookCategoryFromString(EDataType eDataType, String initialValue) { - BookCategory result = BookCategory.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertBookCategoryToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExtlibraryPackage getExtlibraryPackage() { - return (ExtlibraryPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - @Deprecated - public static ExtlibraryPackage getPackage() { - return ExtlibraryPackage.eINSTANCE; - } - -} //ExtlibraryFactoryImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ExtlibraryPackageImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ExtlibraryPackageImpl.java deleted file mode 100644 index d97a12f23..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ExtlibraryPackageImpl.java +++ /dev/null @@ -1,882 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryPackageImpl.java,v 1.5 2010/03/03 14:34:11 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookCategory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.CirculatingItem; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryFactory; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class ExtlibraryPackageImpl extends EPackageImpl implements ExtlibraryPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass bookEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass libraryEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass writerEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass itemEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass lendableEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass circulatingItemEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass periodicalEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass audioVisualItemEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass bookOnTapeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass videoCassetteEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass borrowerEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass personEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass employeeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass addressableEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum bookCategoryEEnum = 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.hibernate.examples.extlibrary.ExtlibraryPackage#eNS_URI - * @see #init() - * @generated - */ - private ExtlibraryPackageImpl() { - super(eNS_URI, ExtlibraryFactory.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. - * - * <p>This method is used to initialize {@link ExtlibraryPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ExtlibraryPackage init() { - if (isInited) return (ExtlibraryPackage)EPackage.Registry.INSTANCE.getEPackage(ExtlibraryPackage.eNS_URI); - - // Obtain or create and register package - ExtlibraryPackageImpl theExtlibraryPackage = (ExtlibraryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ExtlibraryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ExtlibraryPackageImpl()); - - isInited = true; - - // Create package meta-data objects - theExtlibraryPackage.createPackageContents(); - - // Initialize created meta-data - theExtlibraryPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theExtlibraryPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ExtlibraryPackage.eNS_URI, theExtlibraryPackage); - return theExtlibraryPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getBook() { - return bookEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getBook_Title() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getBook_Pages() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getBook_Category() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getBook_Author() { - return (EReference)bookEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getLibrary() { - return libraryEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLibrary_Name() { - return (EAttribute)libraryEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLibrary_Writers() { - return (EReference)libraryEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLibrary_Employees() { - return (EReference)libraryEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLibrary_Borrowers() { - return (EReference)libraryEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLibrary_Stock() { - return (EReference)libraryEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLibrary_Books() { - return (EReference)libraryEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLibrary_People() { - return (EAttribute)libraryEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWriter() { - return writerEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWriter_Name() { - return (EAttribute)writerEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWriter_Books() { - return (EReference)writerEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getItem() { - return itemEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getItem_PublicationDate() { - return (EAttribute)itemEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getLendable() { - return lendableEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLendable_Copies() { - return (EAttribute)lendableEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLendable_Borrowers() { - return (EReference)lendableEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getCirculatingItem() { - return circulatingItemEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPeriodical() { - return periodicalEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPeriodical_Title() { - return (EAttribute)periodicalEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPeriodical_IssuesPerYear() { - return (EAttribute)periodicalEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getAudioVisualItem() { - return audioVisualItemEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAudioVisualItem_Title() { - return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAudioVisualItem_MinutesLength() { - return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAudioVisualItem_Damaged() { - return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getBookOnTape() { - return bookOnTapeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getBookOnTape_Reader() { - return (EReference)bookOnTapeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getBookOnTape_BookAuthor() { - return (EReference)bookOnTapeEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getVideoCassette() { - return videoCassetteEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getVideoCassette_Cast() { - return (EReference)videoCassetteEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getBorrower() { - return borrowerEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getBorrower_Borrowed() { - return (EReference)borrowerEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPerson() { - return personEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPerson_FirstName() { - return (EAttribute)personEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPerson_LastName() { - return (EAttribute)personEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getEmployee() { - return employeeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getEmployee_Manager() { - return (EReference)employeeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getAddressable() { - return addressableEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAddressable_Address() { - return (EAttribute)addressableEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getBookCategory() { - return bookCategoryEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExtlibraryFactory getExtlibraryFactory() { - return (ExtlibraryFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - bookEClass = createEClass(BOOK); - createEAttribute(bookEClass, BOOK__TITLE); - createEAttribute(bookEClass, BOOK__PAGES); - createEAttribute(bookEClass, BOOK__CATEGORY); - createEReference(bookEClass, BOOK__AUTHOR); - - libraryEClass = createEClass(LIBRARY); - createEAttribute(libraryEClass, LIBRARY__NAME); - createEReference(libraryEClass, LIBRARY__WRITERS); - createEReference(libraryEClass, LIBRARY__EMPLOYEES); - createEReference(libraryEClass, LIBRARY__BORROWERS); - createEReference(libraryEClass, LIBRARY__STOCK); - createEReference(libraryEClass, LIBRARY__BOOKS); - createEAttribute(libraryEClass, LIBRARY__PEOPLE); - - writerEClass = createEClass(WRITER); - createEAttribute(writerEClass, WRITER__NAME); - createEReference(writerEClass, WRITER__BOOKS); - - itemEClass = createEClass(ITEM); - createEAttribute(itemEClass, ITEM__PUBLICATION_DATE); - - lendableEClass = createEClass(LENDABLE); - createEAttribute(lendableEClass, LENDABLE__COPIES); - createEReference(lendableEClass, LENDABLE__BORROWERS); - - circulatingItemEClass = createEClass(CIRCULATING_ITEM); - - periodicalEClass = createEClass(PERIODICAL); - createEAttribute(periodicalEClass, PERIODICAL__TITLE); - createEAttribute(periodicalEClass, PERIODICAL__ISSUES_PER_YEAR); - - audioVisualItemEClass = createEClass(AUDIO_VISUAL_ITEM); - createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__TITLE); - createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__MINUTES_LENGTH); - createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__DAMAGED); - - bookOnTapeEClass = createEClass(BOOK_ON_TAPE); - createEReference(bookOnTapeEClass, BOOK_ON_TAPE__READER); - createEReference(bookOnTapeEClass, BOOK_ON_TAPE__BOOK_AUTHOR); - - videoCassetteEClass = createEClass(VIDEO_CASSETTE); - createEReference(videoCassetteEClass, VIDEO_CASSETTE__CAST); - - borrowerEClass = createEClass(BORROWER); - createEReference(borrowerEClass, BORROWER__BORROWED); - - personEClass = createEClass(PERSON); - createEAttribute(personEClass, PERSON__FIRST_NAME); - createEAttribute(personEClass, PERSON__LAST_NAME); - - employeeEClass = createEClass(EMPLOYEE); - createEReference(employeeEClass, EMPLOYEE__MANAGER); - - addressableEClass = createEClass(ADDRESSABLE); - createEAttribute(addressableEClass, ADDRESSABLE__ADDRESS); - - // Create enums - bookCategoryEEnum = createEEnum(BOOK_CATEGORY); - } - - /** - * <!-- 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); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - bookEClass.getESuperTypes().add(this.getCirculatingItem()); - libraryEClass.getESuperTypes().add(this.getAddressable()); - writerEClass.getESuperTypes().add(this.getPerson()); - circulatingItemEClass.getESuperTypes().add(this.getItem()); - circulatingItemEClass.getESuperTypes().add(this.getLendable()); - periodicalEClass.getESuperTypes().add(this.getItem()); - audioVisualItemEClass.getESuperTypes().add(this.getCirculatingItem()); - bookOnTapeEClass.getESuperTypes().add(this.getAudioVisualItem()); - videoCassetteEClass.getESuperTypes().add(this.getAudioVisualItem()); - borrowerEClass.getESuperTypes().add(this.getPerson()); - personEClass.getESuperTypes().add(this.getAddressable()); - employeeEClass.getESuperTypes().add(this.getPerson()); - - // Initialize classes and features; add operations and parameters - initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getBook_Title(), ecorePackage.getEString(), "title", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getBook_Pages(), ecorePackage.getEInt(), "pages", "100", 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getBook_Category(), this.getBookCategory(), "category", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getBook_Author(), this.getWriter(), this.getWriter_Books(), "author", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLibrary_Name(), ecorePackage.getEString(), "name", null, 0, 1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getLibrary_Writers(), this.getWriter(), null, "writers", null, 0, -1, Library.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); - initEReference(getLibrary_Employees(), this.getEmployee(), null, "employees", null, 0, -1, Library.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); - initEReference(getLibrary_Borrowers(), this.getBorrower(), null, "borrowers", null, 0, -1, Library.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); - initEReference(getLibrary_Stock(), this.getItem(), null, "stock", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getLibrary_Books(), this.getBook(), null, "books", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEAttribute(getLibrary_People(), ecorePackage.getEFeatureMapEntry(), "people", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWriter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWriter_Books(), this.getBook(), this.getBook_Author(), "books", null, 0, -1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(itemEClass, Item.class, "Item", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getItem_PublicationDate(), ecorePackage.getEDate(), "publicationDate", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(lendableEClass, Lendable.class, "Lendable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLendable_Copies(), ecorePackage.getEInt(), "copies", null, 1, 1, Lendable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getLendable_Borrowers(), this.getBorrower(), this.getBorrower_Borrowed(), "borrowers", null, 0, -1, Lendable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(circulatingItemEClass, CirculatingItem.class, "CirculatingItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(periodicalEClass, Periodical.class, "Periodical", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPeriodical_Title(), ecorePackage.getEString(), "title", null, 0, 1, Periodical.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPeriodical_IssuesPerYear(), ecorePackage.getEInt(), "issuesPerYear", null, 1, 1, Periodical.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(audioVisualItemEClass, AudioVisualItem.class, "AudioVisualItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAudioVisualItem_Title(), ecorePackage.getEString(), "title", null, 0, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAudioVisualItem_MinutesLength(), ecorePackage.getEInt(), "minutesLength", null, 1, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAudioVisualItem_Damaged(), ecorePackage.getEBoolean(), "damaged", null, 0, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(bookOnTapeEClass, BookOnTape.class, "BookOnTape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getBookOnTape_Reader(), this.getPerson(), null, "reader", null, 0, 1, BookOnTape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getBookOnTape_BookAuthor(), this.getWriter(), null, "bookAuthor", null, 0, 1, BookOnTape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(videoCassetteEClass, VideoCassette.class, "VideoCassette", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getVideoCassette_Cast(), this.getPerson(), null, "cast", null, 0, -1, VideoCassette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(borrowerEClass, Borrower.class, "Borrower", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getBorrower_Borrowed(), this.getLendable(), this.getLendable_Borrowers(), "borrowed", null, 0, -1, Borrower.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(personEClass, Person.class, "Person", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPerson_FirstName(), ecorePackage.getEString(), "firstName", null, 1, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPerson_LastName(), ecorePackage.getEString(), "lastName", null, 1, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(employeeEClass, Employee.class, "Employee", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEmployee_Manager(), this.getEmployee(), null, "manager", null, 0, 1, Employee.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(addressableEClass, Addressable.class, "Addressable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAddressable_Address(), ecorePackage.getEString(), "address", null, 0, 1, Addressable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory"); - addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY); - addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION); - addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY); - - // Create resource - createResource(eNS_URI); - - // Create annotations - // teneo.jpa - createTeneoAnnotations(); - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - // http://annotation.elver.org/JoinColumn - createJoinColumnAnnotations(); - } - - /** - * Initializes the annotations for <b>teneo.jpa</b>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void createTeneoAnnotations() { - String source = "teneo.jpa"; - addAnnotation - (getBook_Category(), - source, - new String[] { - "value", "@Enumerated(ORDINAL)" - }); - addAnnotation - (getLibrary_Writers(), - source, - new String[] { - "value", "@IdBag" - }); - } - - /** - * 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 - (getLibrary_Writers(), - source, - new String[] { - "group", "#people" - }); - addAnnotation - (getLibrary_Employees(), - source, - new String[] { - "group", "#people" - }); - addAnnotation - (getLibrary_Borrowers(), - source, - new String[] { - "group", "#people" - }); - addAnnotation - (getLibrary_People(), - source, - new String[] { - "kind", "group" - }); - } - - /** - * Initializes the annotations for <b>http://annotation.elver.org/JoinColumn</b>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void createJoinColumnAnnotations() { - String source = "http://annotation.elver.org/JoinColumn"; - addAnnotation - (getBookOnTape_BookAuthor(), - source, - new String[] { - "name", "BookOnTapeAuthor" - }); - } - -} //ExtlibraryPackageImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ItemImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ItemImpl.java deleted file mode 100644 index 02730f2cc..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/ItemImpl.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ItemImpl.java,v 1.2 2010/03/02 06:08:37 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import java.util.Date; - -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.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Item</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.ItemImpl#getPublicationDate <em>Publication Date</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class ItemImpl extends EObjectImpl implements Item { - /** - * The default value of the '{@link #getPublicationDate() <em>Publication Date</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPublicationDate() - * @generated - * @ordered - */ - protected static final Date PUBLICATION_DATE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPublicationDate() <em>Publication Date</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPublicationDate() - * @generated - * @ordered - */ - protected Date publicationDate = PUBLICATION_DATE_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ItemImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.ITEM; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Date getPublicationDate() { - return publicationDate; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPublicationDate(Date newPublicationDate) { - Date oldPublicationDate = publicationDate; - publicationDate = newPublicationDate; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.ITEM__PUBLICATION_DATE, oldPublicationDate, publicationDate)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.ITEM__PUBLICATION_DATE: - return getPublicationDate(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.ITEM__PUBLICATION_DATE: - setPublicationDate((Date)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.ITEM__PUBLICATION_DATE: - setPublicationDate(PUBLICATION_DATE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.ITEM__PUBLICATION_DATE: - return PUBLICATION_DATE_EDEFAULT == null ? publicationDate != null : !PUBLICATION_DATE_EDEFAULT.equals(publicationDate); - } - 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(" (publicationDate: "); - result.append(publicationDate); - result.append(')'); - return result.toString(); - } - -} //ItemImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/LibraryImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/LibraryImpl.java deleted file mode 100644 index 064381db5..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/LibraryImpl.java +++ /dev/null @@ -1,430 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: LibraryImpl.java,v 1.3 2010/03/03 14:34:11 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Library</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getAddress <em>Address</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getWriters <em>Writers</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getEmployees <em>Employees</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getBorrowers <em>Borrowers</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getStock <em>Stock</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getBooks <em>Books</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.LibraryImpl#getPeople <em>People</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class LibraryImpl extends EObjectImpl implements Library { - /** - * The default value of the '{@link #getAddress() <em>Address</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAddress() - * @generated - * @ordered - */ - protected static final String ADDRESS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAddress() <em>Address</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAddress() - * @generated - * @ordered - */ - protected String address = ADDRESS_EDEFAULT; - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getStock() <em>Stock</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getStock() - * @generated - * @ordered - */ - protected EList<Item> stock; - - /** - * The cached value of the '{@link #getBooks() <em>Books</em>}' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBooks() - * @generated - * @ordered - */ - protected EList<Book> books; - - /** - * The cached value of the '{@link #getPeople() <em>People</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPeople() - * @generated - * @ordered - */ - protected FeatureMap people; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected LibraryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.LIBRARY; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAddress() { - return address; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAddress(String newAddress) { - String oldAddress = address; - address = newAddress; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.LIBRARY__ADDRESS, oldAddress, address)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.LIBRARY__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Writer> getWriters() { - return getPeople().list(ExtlibraryPackage.Literals.LIBRARY__WRITERS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Employee> getEmployees() { - return getPeople().list(ExtlibraryPackage.Literals.LIBRARY__EMPLOYEES); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Borrower> getBorrowers() { - return getPeople().list(ExtlibraryPackage.Literals.LIBRARY__BORROWERS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Item> getStock() { - if (stock == null) { - stock = new EObjectContainmentEList<Item>(Item.class, this, ExtlibraryPackage.LIBRARY__STOCK); - } - return stock; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Book> getBooks() { - if (books == null) { - books = new EObjectResolvingEList<Book>(Book.class, this, ExtlibraryPackage.LIBRARY__BOOKS); - } - return books; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FeatureMap getPeople() { - if (people == null) { - people = new BasicFeatureMap(this, ExtlibraryPackage.LIBRARY__PEOPLE); - } - return people; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.LIBRARY__WRITERS: - return ((InternalEList<?>)getWriters()).basicRemove(otherEnd, msgs); - case ExtlibraryPackage.LIBRARY__EMPLOYEES: - return ((InternalEList<?>)getEmployees()).basicRemove(otherEnd, msgs); - case ExtlibraryPackage.LIBRARY__BORROWERS: - return ((InternalEList<?>)getBorrowers()).basicRemove(otherEnd, msgs); - case ExtlibraryPackage.LIBRARY__STOCK: - return ((InternalEList<?>)getStock()).basicRemove(otherEnd, msgs); - case ExtlibraryPackage.LIBRARY__PEOPLE: - return ((InternalEList<?>)getPeople()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.LIBRARY__ADDRESS: - return getAddress(); - case ExtlibraryPackage.LIBRARY__NAME: - return getName(); - case ExtlibraryPackage.LIBRARY__WRITERS: - return getWriters(); - case ExtlibraryPackage.LIBRARY__EMPLOYEES: - return getEmployees(); - case ExtlibraryPackage.LIBRARY__BORROWERS: - return getBorrowers(); - case ExtlibraryPackage.LIBRARY__STOCK: - return getStock(); - case ExtlibraryPackage.LIBRARY__BOOKS: - return getBooks(); - case ExtlibraryPackage.LIBRARY__PEOPLE: - if (coreType) return getPeople(); - return ((FeatureMap.Internal)getPeople()).getWrapper(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.LIBRARY__ADDRESS: - setAddress((String)newValue); - return; - case ExtlibraryPackage.LIBRARY__NAME: - setName((String)newValue); - return; - case ExtlibraryPackage.LIBRARY__WRITERS: - getWriters().clear(); - getWriters().addAll((Collection<? extends Writer>)newValue); - return; - case ExtlibraryPackage.LIBRARY__EMPLOYEES: - getEmployees().clear(); - getEmployees().addAll((Collection<? extends Employee>)newValue); - return; - case ExtlibraryPackage.LIBRARY__BORROWERS: - getBorrowers().clear(); - getBorrowers().addAll((Collection<? extends Borrower>)newValue); - return; - case ExtlibraryPackage.LIBRARY__STOCK: - getStock().clear(); - getStock().addAll((Collection<? extends Item>)newValue); - return; - case ExtlibraryPackage.LIBRARY__BOOKS: - getBooks().clear(); - getBooks().addAll((Collection<? extends Book>)newValue); - return; - case ExtlibraryPackage.LIBRARY__PEOPLE: - ((FeatureMap.Internal)getPeople()).set(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.LIBRARY__ADDRESS: - setAddress(ADDRESS_EDEFAULT); - return; - case ExtlibraryPackage.LIBRARY__NAME: - setName(NAME_EDEFAULT); - return; - case ExtlibraryPackage.LIBRARY__WRITERS: - getWriters().clear(); - return; - case ExtlibraryPackage.LIBRARY__EMPLOYEES: - getEmployees().clear(); - return; - case ExtlibraryPackage.LIBRARY__BORROWERS: - getBorrowers().clear(); - return; - case ExtlibraryPackage.LIBRARY__STOCK: - getStock().clear(); - return; - case ExtlibraryPackage.LIBRARY__BOOKS: - getBooks().clear(); - return; - case ExtlibraryPackage.LIBRARY__PEOPLE: - getPeople().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.LIBRARY__ADDRESS: - return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address); - case ExtlibraryPackage.LIBRARY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ExtlibraryPackage.LIBRARY__WRITERS: - return !getWriters().isEmpty(); - case ExtlibraryPackage.LIBRARY__EMPLOYEES: - return !getEmployees().isEmpty(); - case ExtlibraryPackage.LIBRARY__BORROWERS: - return !getBorrowers().isEmpty(); - case ExtlibraryPackage.LIBRARY__STOCK: - return stock != null && !stock.isEmpty(); - case ExtlibraryPackage.LIBRARY__BOOKS: - return books != null && !books.isEmpty(); - case ExtlibraryPackage.LIBRARY__PEOPLE: - return people != null && !people.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (address: "); - result.append(address); - result.append(", name: "); - result.append(name); - result.append(", people: "); - result.append(people); - result.append(')'); - return result.toString(); - } - -} //LibraryImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/PeriodicalImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/PeriodicalImpl.java deleted file mode 100644 index fc4d3b747..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/PeriodicalImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: PeriodicalImpl.java,v 1.2 2010/03/02 06:08:38 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.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.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Periodical</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PeriodicalImpl#getTitle <em>Title</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PeriodicalImpl#getIssuesPerYear <em>Issues Per Year</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class PeriodicalImpl extends ItemImpl implements Periodical { - /** - * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTitle() - * @generated - * @ordered - */ - protected static final String TITLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTitle() - * @generated - * @ordered - */ - protected String title = TITLE_EDEFAULT; - - /** - * The default value of the '{@link #getIssuesPerYear() <em>Issues Per Year</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIssuesPerYear() - * @generated - * @ordered - */ - protected static final int ISSUES_PER_YEAR_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIssuesPerYear() <em>Issues Per Year</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIssuesPerYear() - * @generated - * @ordered - */ - protected int issuesPerYear = ISSUES_PER_YEAR_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PeriodicalImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.PERIODICAL; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getTitle() { - return title; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTitle(String newTitle) { - String oldTitle = title; - title = newTitle; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.PERIODICAL__TITLE, oldTitle, title)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getIssuesPerYear() { - return issuesPerYear; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setIssuesPerYear(int newIssuesPerYear) { - int oldIssuesPerYear = issuesPerYear; - issuesPerYear = newIssuesPerYear; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.PERIODICAL__ISSUES_PER_YEAR, oldIssuesPerYear, issuesPerYear)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.PERIODICAL__TITLE: - return getTitle(); - case ExtlibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - return getIssuesPerYear(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.PERIODICAL__TITLE: - setTitle((String)newValue); - return; - case ExtlibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - setIssuesPerYear((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.PERIODICAL__TITLE: - setTitle(TITLE_EDEFAULT); - return; - case ExtlibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - setIssuesPerYear(ISSUES_PER_YEAR_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.PERIODICAL__TITLE: - return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); - case ExtlibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - return issuesPerYear != ISSUES_PER_YEAR_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (title: "); - result.append(title); - result.append(", issuesPerYear: "); - result.append(issuesPerYear); - result.append(')'); - return result.toString(); - } - -} //PeriodicalImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/PersonImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/PersonImpl.java deleted file mode 100644 index c22b7d3ac..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/PersonImpl.java +++ /dev/null @@ -1,275 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: PersonImpl.java,v 1.2 2010/03/02 06:08:37 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.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.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Person</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PersonImpl#getAddress <em>Address</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PersonImpl#getFirstName <em>First Name</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.PersonImpl#getLastName <em>Last Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class PersonImpl extends EObjectImpl implements Person { - /** - * The default value of the '{@link #getAddress() <em>Address</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAddress() - * @generated - * @ordered - */ - protected static final String ADDRESS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAddress() <em>Address</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAddress() - * @generated - * @ordered - */ - protected String address = ADDRESS_EDEFAULT; - - /** - * The default value of the '{@link #getFirstName() <em>First Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFirstName() - * @generated - * @ordered - */ - protected static final String FIRST_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFirstName() <em>First Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFirstName() - * @generated - * @ordered - */ - protected String firstName = FIRST_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getLastName() <em>Last Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLastName() - * @generated - * @ordered - */ - protected static final String LAST_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLastName() <em>Last Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLastName() - * @generated - * @ordered - */ - protected String lastName = LAST_NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PersonImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.PERSON; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAddress() { - return address; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAddress(String newAddress) { - String oldAddress = address; - address = newAddress; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.PERSON__ADDRESS, oldAddress, address)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getFirstName() { - return firstName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFirstName(String newFirstName) { - String oldFirstName = firstName; - firstName = newFirstName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.PERSON__FIRST_NAME, oldFirstName, firstName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLastName() { - return lastName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLastName(String newLastName) { - String oldLastName = lastName; - lastName = newLastName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.PERSON__LAST_NAME, oldLastName, lastName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.PERSON__ADDRESS: - return getAddress(); - case ExtlibraryPackage.PERSON__FIRST_NAME: - return getFirstName(); - case ExtlibraryPackage.PERSON__LAST_NAME: - return getLastName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.PERSON__ADDRESS: - setAddress((String)newValue); - return; - case ExtlibraryPackage.PERSON__FIRST_NAME: - setFirstName((String)newValue); - return; - case ExtlibraryPackage.PERSON__LAST_NAME: - setLastName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.PERSON__ADDRESS: - setAddress(ADDRESS_EDEFAULT); - return; - case ExtlibraryPackage.PERSON__FIRST_NAME: - setFirstName(FIRST_NAME_EDEFAULT); - return; - case ExtlibraryPackage.PERSON__LAST_NAME: - setLastName(LAST_NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.PERSON__ADDRESS: - return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address); - case ExtlibraryPackage.PERSON__FIRST_NAME: - return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName); - case ExtlibraryPackage.PERSON__LAST_NAME: - return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName); - } - 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(" (address: "); - result.append(address); - result.append(", firstName: "); - result.append(firstName); - result.append(", lastName: "); - result.append(lastName); - result.append(')'); - return result.toString(); - } - -} //PersonImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/VideoCassetteImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/VideoCassetteImpl.java deleted file mode 100644 index 5e7496300..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/VideoCassetteImpl.java +++ /dev/null @@ -1,136 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: VideoCassetteImpl.java,v 1.2 2010/03/02 06:08:37 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.util.EObjectResolvingEList; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Video Cassette</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.VideoCassetteImpl#getCast <em>Cast</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class VideoCassetteImpl extends AudioVisualItemImpl implements VideoCassette { - /** - * The cached value of the '{@link #getCast() <em>Cast</em>}' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCast() - * @generated - * @ordered - */ - protected EList<Person> cast; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected VideoCassetteImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.VIDEO_CASSETTE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Person> getCast() { - if (cast == null) { - cast = new EObjectResolvingEList<Person>(Person.class, this, ExtlibraryPackage.VIDEO_CASSETTE__CAST); - } - return cast; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.VIDEO_CASSETTE__CAST: - return getCast(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.VIDEO_CASSETTE__CAST: - getCast().clear(); - getCast().addAll((Collection<? extends Person>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.VIDEO_CASSETTE__CAST: - getCast().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.VIDEO_CASSETTE__CAST: - return cast != null && !cast.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //VideoCassetteImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/WriterImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/WriterImpl.java deleted file mode 100644 index 718a18517..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/impl/WriterImpl.java +++ /dev/null @@ -1,239 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: WriterImpl.java,v 1.3 2010/03/03 10:48:41 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.ExtlibraryPackage; -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Writer</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.WriterImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.impl.WriterImpl#getBooks <em>Books</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WriterImpl extends PersonImpl implements Writer { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getBooks() <em>Books</em>}' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBooks() - * @generated - * @ordered - */ - protected EList<Book> books; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WriterImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtlibraryPackage.Literals.WRITER; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ExtlibraryPackage.WRITER__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<Book> getBooks() { - if (books == null) { - books = new EObjectWithInverseResolvingEList<Book>(Book.class, this, ExtlibraryPackage.WRITER__BOOKS, ExtlibraryPackage.BOOK__AUTHOR); - } - return books; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.WRITER__BOOKS: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getBooks()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ExtlibraryPackage.WRITER__BOOKS: - return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtlibraryPackage.WRITER__NAME: - return getName(); - case ExtlibraryPackage.WRITER__BOOKS: - return getBooks(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtlibraryPackage.WRITER__NAME: - setName((String)newValue); - return; - case ExtlibraryPackage.WRITER__BOOKS: - getBooks().clear(); - getBooks().addAll((Collection<? extends Book>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtlibraryPackage.WRITER__NAME: - setName(NAME_EDEFAULT); - return; - case ExtlibraryPackage.WRITER__BOOKS: - getBooks().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtlibraryPackage.WRITER__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ExtlibraryPackage.WRITER__BOOKS: - return books != null && !books.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //WriterImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryAdapterFactory.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryAdapterFactory.java deleted file mode 100644 index 0ab3e43cd..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryAdapterFactory.java +++ /dev/null @@ -1,358 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryAdapterFactory.java,v 1.2 2010/03/02 06:08:35 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.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.hibernate.examples.extlibrary.*; - -/** - * <!-- 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.hibernate.examples.extlibrary.ExtlibraryPackage - * @generated - */ -public class ExtlibraryAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static ExtlibraryPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExtlibraryAdapterFactory() { - if (modelPackage == null) { - modelPackage = ExtlibraryPackage.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 ExtlibrarySwitch<Adapter> modelSwitch = - new ExtlibrarySwitch<Adapter>() { - @Override - public Adapter caseBook(Book object) { - return createBookAdapter(); - } - @Override - public Adapter caseLibrary(Library object) { - return createLibraryAdapter(); - } - @Override - public Adapter caseWriter(Writer object) { - return createWriterAdapter(); - } - @Override - public Adapter caseItem(Item object) { - return createItemAdapter(); - } - @Override - public Adapter caseLendable(Lendable object) { - return createLendableAdapter(); - } - @Override - public Adapter caseCirculatingItem(CirculatingItem object) { - return createCirculatingItemAdapter(); - } - @Override - public Adapter casePeriodical(Periodical object) { - return createPeriodicalAdapter(); - } - @Override - public Adapter caseAudioVisualItem(AudioVisualItem object) { - return createAudioVisualItemAdapter(); - } - @Override - public Adapter caseBookOnTape(BookOnTape object) { - return createBookOnTapeAdapter(); - } - @Override - public Adapter caseVideoCassette(VideoCassette object) { - return createVideoCassetteAdapter(); - } - @Override - public Adapter caseBorrower(Borrower object) { - return createBorrowerAdapter(); - } - @Override - public Adapter casePerson(Person object) { - return createPersonAdapter(); - } - @Override - public Adapter caseEmployee(Employee object) { - return createEmployeeAdapter(); - } - @Override - public Adapter caseAddressable(Addressable object) { - return createAddressableAdapter(); - } - @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.hibernate.examples.extlibrary.Book <em>Book</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Book - * @generated - */ - public Adapter createBookAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Library <em>Library</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.hibernate.examples.extlibrary.Library - * @generated - */ - public Adapter createLibraryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer <em>Writer</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.emf.teneo.hibernate.examples.extlibrary.Writer - * @generated - */ - public Adapter createWriterAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Item <em>Item</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.hibernate.examples.extlibrary.Item - * @generated - */ - public Adapter createItemAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Lendable <em>Lendable</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.hibernate.examples.extlibrary.Lendable - * @generated - */ - public Adapter createLendableAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.CirculatingItem <em>Circulating Item</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.hibernate.examples.extlibrary.CirculatingItem - * @generated - */ - public Adapter createCirculatingItemAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Periodical <em>Periodical</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.hibernate.examples.extlibrary.Periodical - * @generated - */ - public Adapter createPeriodicalAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.AudioVisualItem <em>Audio Visual Item</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.hibernate.examples.extlibrary.AudioVisualItem - * @generated - */ - public Adapter createAudioVisualItemAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.BookOnTape <em>Book On Tape</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.hibernate.examples.extlibrary.BookOnTape - * @generated - */ - public Adapter createBookOnTapeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.VideoCassette <em>Video Cassette</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.hibernate.examples.extlibrary.VideoCassette - * @generated - */ - public Adapter createVideoCassetteAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Borrower <em>Borrower</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.hibernate.examples.extlibrary.Borrower - * @generated - */ - public Adapter createBorrowerAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Person <em>Person</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.hibernate.examples.extlibrary.Person - * @generated - */ - public Adapter createPersonAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Employee <em>Employee</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.hibernate.examples.extlibrary.Employee - * @generated - */ - public Adapter createEmployeeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.examples.extlibrary.Addressable <em>Addressable</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.hibernate.examples.extlibrary.Addressable - * @generated - */ - public Adapter createAddressableAdapter() { - 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; - } - -} //ExtlibraryAdapterFactory diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryResourceFactoryImpl.java deleted file mode 100644 index 437141017..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryResourceFactoryImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryResourceFactoryImpl.java,v 1.2 2010/03/02 06:08:35 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.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.hibernate.examples.extlibrary.util.ExtlibraryResourceImpl - * @generated - */ -public class ExtlibraryResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExtlibraryResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Resource createResource(URI uri) { - XMLResource result = new ExtlibraryResourceImpl(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; - } - -} //ExtlibraryResourceFactoryImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryResourceImpl.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryResourceImpl.java deleted file mode 100644 index 19b43cb27..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryResourceImpl.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryResourceImpl.java,v 1.2 2010/03/02 06:08:35 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.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.hibernate.examples.extlibrary.util.ExtlibraryResourceFactoryImpl - * @generated - */ -public class ExtlibraryResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param uri the URI of the new resource. - * @generated - */ - public ExtlibraryResourceImpl(URI uri) { - super(uri); - } - -} //ExtlibraryResourceImpl diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibrarySwitch.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibrarySwitch.java deleted file mode 100644 index be2f5d689..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibrarySwitch.java +++ /dev/null @@ -1,428 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibrarySwitch.java,v 1.2 2010/03/02 06:08:36 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.teneo.hibernate.examples.extlibrary.*; - -/** - * <!-- 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.hibernate.examples.extlibrary.ExtlibraryPackage - * @generated - */ -public class ExtlibrarySwitch<T> { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static ExtlibraryPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExtlibrarySwitch() { - if (modelPackage == null) { - modelPackage = ExtlibraryPackage.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 ExtlibraryPackage.BOOK: { - Book book = (Book)theEObject; - T result = caseBook(book); - if (result == null) result = caseCirculatingItem(book); - if (result == null) result = caseItem(book); - if (result == null) result = caseLendable(book); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.LIBRARY: { - Library library = (Library)theEObject; - T result = caseLibrary(library); - if (result == null) result = caseAddressable(library); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.WRITER: { - Writer writer = (Writer)theEObject; - T result = caseWriter(writer); - if (result == null) result = casePerson(writer); - if (result == null) result = caseAddressable(writer); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.ITEM: { - Item item = (Item)theEObject; - T result = caseItem(item); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.LENDABLE: { - Lendable lendable = (Lendable)theEObject; - T result = caseLendable(lendable); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.CIRCULATING_ITEM: { - CirculatingItem circulatingItem = (CirculatingItem)theEObject; - T result = caseCirculatingItem(circulatingItem); - if (result == null) result = caseItem(circulatingItem); - if (result == null) result = caseLendable(circulatingItem); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.PERIODICAL: { - Periodical periodical = (Periodical)theEObject; - T result = casePeriodical(periodical); - if (result == null) result = caseItem(periodical); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.AUDIO_VISUAL_ITEM: { - AudioVisualItem audioVisualItem = (AudioVisualItem)theEObject; - T result = caseAudioVisualItem(audioVisualItem); - if (result == null) result = caseCirculatingItem(audioVisualItem); - if (result == null) result = caseItem(audioVisualItem); - if (result == null) result = caseLendable(audioVisualItem); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.BOOK_ON_TAPE: { - BookOnTape bookOnTape = (BookOnTape)theEObject; - T result = caseBookOnTape(bookOnTape); - if (result == null) result = caseAudioVisualItem(bookOnTape); - if (result == null) result = caseCirculatingItem(bookOnTape); - if (result == null) result = caseItem(bookOnTape); - if (result == null) result = caseLendable(bookOnTape); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.VIDEO_CASSETTE: { - VideoCassette videoCassette = (VideoCassette)theEObject; - T result = caseVideoCassette(videoCassette); - if (result == null) result = caseAudioVisualItem(videoCassette); - if (result == null) result = caseCirculatingItem(videoCassette); - if (result == null) result = caseItem(videoCassette); - if (result == null) result = caseLendable(videoCassette); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.BORROWER: { - Borrower borrower = (Borrower)theEObject; - T result = caseBorrower(borrower); - if (result == null) result = casePerson(borrower); - if (result == null) result = caseAddressable(borrower); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.PERSON: { - Person person = (Person)theEObject; - T result = casePerson(person); - if (result == null) result = caseAddressable(person); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.EMPLOYEE: { - Employee employee = (Employee)theEObject; - T result = caseEmployee(employee); - if (result == null) result = casePerson(employee); - if (result == null) result = caseAddressable(employee); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ExtlibraryPackage.ADDRESSABLE: { - Addressable addressable = (Addressable)theEObject; - T result = caseAddressable(addressable); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Book</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Book</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseBook(Book object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Library</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>Library</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseLibrary(Library object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Writer</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Writer</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseWriter(Writer object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Item</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>Item</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseItem(Item object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Lendable</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>Lendable</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseLendable(Lendable object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Circulating Item</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>Circulating Item</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCirculatingItem(CirculatingItem object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Periodical</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>Periodical</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T casePeriodical(Periodical object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Audio Visual Item</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>Audio Visual Item</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAudioVisualItem(AudioVisualItem object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Book On Tape</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Book On Tape</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseBookOnTape(BookOnTape object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Video Cassette</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>Video Cassette</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseVideoCassette(VideoCassette object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Borrower</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>Borrower</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseBorrower(Borrower object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Person</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>Person</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T casePerson(Person object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Employee</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>Employee</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEmployee(Employee object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Addressable</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>Addressable</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAddressable(Addressable 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; - } - -} //ExtlibrarySwitch diff --git a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryXMLProcessor.java b/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryXMLProcessor.java deleted file mode 100644 index 4be340e8a..000000000 --- a/examples/org.eclipse.emf.teneo.hibernate.examples/src/org/eclipse/emf/teneo/hibernate/examples/extlibrary/util/ExtlibraryXMLProcessor.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ExtlibraryXMLProcessor.java,v 1.2 2010/03/02 06:08:35 mtaal Exp $ - */ -package org.eclipse.emf.teneo.hibernate.examples.extlibrary.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.hibernate.examples.extlibrary.ExtlibraryPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ExtlibraryXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExtlibraryXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - ExtlibraryPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the ExtlibraryResourceFactoryImpl 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 ExtlibraryResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new ExtlibraryResourceFactoryImpl()); - } - return registrations; - } - -} //ExtlibraryXMLProcessor |