Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.eclipselink.examples.library.orm/src/META-INF/orm.xml')
-rw-r--r--examples/org.eclipse.emf.teneo.eclipselink.examples.library.orm/src/META-INF/orm.xml301
1 files changed, 0 insertions, 301 deletions
diff --git a/examples/org.eclipse.emf.teneo.eclipselink.examples.library.orm/src/META-INF/orm.xml b/examples/org.eclipse.emf.teneo.eclipselink.examples.library.orm/src/META-INF/orm.xml
deleted file mode 100644
index 046b9e841..000000000
--- a/examples/org.eclipse.emf.teneo.eclipselink.examples.library.orm/src/META-INF/orm.xml
+++ /dev/null
@@ -1,301 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<entity-mappings
- xmlns="http://java.sun.com/xml/ns/persistence/orm"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
- version="1.0">
-
- <!--=================================-->
- <!-- Persistence unit level metadata -->
- <!--=================================-->
-
- <persistence-unit-metadata>
- <xml-mapping-metadata-complete/>
- <persistence-unit-defaults>
- <access>FIELD</access>
- </persistence-unit-defaults>
- </persistence-unit-metadata>
-
- <!--=============================-->
- <!-- Mapping file level metadata -->
- <!--=============================-->
-
- <package>org.eclipse.emf.teneo.eclipselink.examples.library.impl</package>
-
- <!--=========-->
- <!-- Queries -->
- <!--=========-->
-
-
- <!--=========================-->
- <!-- Abstract class mappings -->
- <!--=========================-->
-
- <!--=================-->
- <!-- Entity mappings -->
- <!--=================-->
-
- <entity name="Address" class="AddressImpl">
- <table name="EMFLIB_ADDRESS"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="town"/>
- <basic name="eContainerFeatureID">
- <column name="ECONT_FEAT_ID"/>
- </basic>
- <one-to-one name="eContainer" target-entity="WriterImpl" mapped-by="address">
- </one-to-one>
- </attributes>
- </entity>
-
- <entity name="Book" class="BookImpl" access="FIELD">
- <table name="EMFLIB_BOOK"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="title"/>
- <basic name="pages"/>
- <basic name="eContainerFeatureID">
- <column name="ECONT_FEAT_ID"/>
- </basic>
- <many-to-one name="author" target-entity="WriterImpl">
- <join-column name="AUTHOR_ID"/>
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </many-to-one>
- <one-to-many name="styles" target-entity="BookStylesMapEntryImpl" mapped-by="eContainer">
- <cascade>
- <cascade-all/>
- </cascade>
- </one-to-many>
- <one-to-one name="cover" target-entity="CoverImpl" mapped-by="eContainer">
- <cascade>
- <cascade-all/>
- </cascade>
- </one-to-one>
- <one-to-one name="eContainer" target-entity="StringToBookMapEntryImpl" mapped-by="value">
- <cascade>
- <cascade-all/>
- </cascade>
- </one-to-one>
- <one-to-one name="translator" target-entity="TranslatorImpl">
- <join-column name="TRANSLATOR_ID"/>
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </one-to-one>
- <!-- TODO: category requires conversion/transformation/enum -->
- <transient name="category"/>
- </attributes>
- </entity>
-
- <entity class="BookStylesMapEntryImpl">
- <table name="EMFLIB_BOOK_STYLE_MAP"/>
- <id-class class="org.eclipse.emf.teneo.eclipselink.examples.library.orm.MapEntryId"/>
- <attributes>
- <id name="key">
- <column name="MAPKEY"/>
- </id>
- <id name="dbID">
- <column name="BOOK_ID" updatable="false" insertable="false"/>
- </id>
- <basic name="eContainerFeatureID">
- <column name="ECONT_FEAT_ID"/>
- </basic>
- <one-to-one name="value" target-entity="StyleImpl">
- <join-column name="STYLE_ID"/>
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </one-to-one>
- <one-to-one name="eContainer" target-entity="BookImpl">
- <join-column name="BOOK_ID"/>
- </one-to-one>
- <transient name="hash"/>
- </attributes>
- </entity>
-
- <entity name="Cover" class="CoverImpl">
- <table name="EMFLIB_COVER"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="colored"/>
- <basic name="eContainerFeatureID">
- <column name="ECONT_FEAT_ID"/>
- </basic>
- <one-to-one name="eContainer" target-entity="BookImpl">
- <join-column name="ECONTAINER_ID"/>
- </one-to-one>
- </attributes>
- </entity>
-
- <entity name="Library" class="LibraryImpl">
- <table name="EMFLIB_LIBRARY"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="name"/>
- <one-to-many name="books" target-entity="StringToBookMapEntryImpl" mapped-by="eContainer">
- <cascade>
- <cascade-all/>
- </cascade>
- </one-to-many>
- <one-to-many name="writers" target-entity="WriterImpl" mapped-by="eContainer">
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </one-to-many>
- </attributes>
- </entity>
-
- <entity name="Publisher" class="PublisherImpl">
- <table name="EMFLIB_PUBLISHER"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="name"/>
- <many-to-many name="writers" target-entity="WriterImpl">
- <join-table name="EMFLIB_PUBLISHER_WRITER"></join-table>
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </many-to-many>
- </attributes>
- </entity>
-
- <entity class="StringToBookMapEntryImpl">
- <table name="EMFLIB_LIBRARY_BOOK_MAP"/>
- <id-class class="org.eclipse.emf.teneo.eclipselink.examples.library.orm.MapEntryId"/>
- <attributes>
- <id name="key">
- <column name="MAPKEY"/>
- </id>
- <id name="dbID">
- <column name="LIBRARY_ID" updatable="false" insertable="false"/>
- </id>
- <basic name="eContainerFeatureID">
- <column name="ECONT_FEAT_ID"/>
- </basic>
- <one-to-one name="value" target-entity="BookImpl">
- <join-column name="BOOK_ID" referenced-column-name="ID"/>
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </one-to-one>
- <one-to-one name="eContainer" target-entity="LibraryImpl">
- <join-column name="LIBRARY_ID"/>
- </one-to-one>
- <transient name="hash"/>
- </attributes>
- </entity>
-
- <entity name="Style" class="StyleImpl">
- <table name="EMFLIB_STYLE"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="name"/>
- </attributes>
- </entity>
-
- <entity name="Translator" class="TranslatorImpl">
- <table name="EMFLIB_TRANSLATOR"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="location"/>
- <basic name="name"/>
- <!-- address should be removed from Translator -->
- <transient name="address"/>
- </attributes>
- </entity>
-
- <entity name="TypeWriter" class="TypeWriterImpl">
- <table name="EMFLIB_TYPEWRITER"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="maker"/>
- <basic name="type">
- <enumerated>STRING</enumerated>
- </basic>
- </attributes>
- </entity>
-
- <entity name="Writer" class="WriterImpl">
- <table name="EMFLIB_WRITER"/>
- <attributes>
- <id name="dbID">
- <column name="ID"/>
- <generated-value/>
- </id>
- <basic name="name"/>
- <basic name="eContainerFeatureID">
- <column name="ECONT_FEAT_ID"/>
- </basic>
- <one-to-many name="books" mapped-by="author" target-entity="BookImpl">
- <cascade>
- <cascade-all/>
- </cascade>
- </one-to-many>
- <one-to-one name="address" target-entity="AddressImpl" >
- <join-column name="ADDRESS_ID"/>
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </one-to-one>
- <one-to-one name="eContainer" target-entity="LibraryImpl">
- <join-column name="ECONTAINER_ID"/>
- </one-to-one>
- <many-to-many name="publishers" target-entity="PublisherImpl" mapped-by="writers">
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </many-to-many>
- <many-to-many name="typewriters" target-entity="TypeWriterImpl">
- <join-table name="EMFLIB_WRITER_TYPEWRITER"/>
- <cascade>
- <cascade-persist/>
- <cascade-merge/>
- <cascade-refresh/>
- </cascade>
- </many-to-many>
- </attributes>
- </entity>
-
-</entity-mappings> \ No newline at end of file

Back to the top