Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2010-02-04 08:34:34 -0500
committermtaal2010-02-04 08:34:34 -0500
commitb8c82ad1d19378b97c28a4e0142a9ab8a9589e00 (patch)
tree6d7f0a7d1708c1736f8ddfb0714113dd3c3e0d9f
parent2f0f4d3394b93e7bf2c2a05580bf8b0b6b8f92f9 (diff)
downloadorg.eclipse.emf.teneo-b8c82ad1d19378b97c28a4e0142a9ab8a9589e00.tar.gz
org.eclipse.emf.teneo-b8c82ad1d19378b97c28a4e0142a9ab8a9589e00.tar.xz
org.eclipse.emf.teneo-b8c82ad1d19378b97c28a4e0142a9ab8a9589e00.zip
Updated
-rw-r--r--examples/org.eclipse.emf.teneo.eclipselink.examples.library/META-INF/MANIFEST.MF3
-rw-r--r--examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml251
-rw-r--r--examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old247
3 files changed, 500 insertions, 1 deletions
diff --git a/examples/org.eclipse.emf.teneo.eclipselink.examples.library/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.teneo.eclipselink.examples.library/META-INF/MANIFEST.MF
index fb351c9bf..51f23e1ba 100644
--- a/examples/org.eclipse.emf.teneo.eclipselink.examples.library/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.teneo.eclipselink.examples.library/META-INF/MANIFEST.MF
@@ -18,5 +18,6 @@ Export-Package: META-INF,
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.teneo.eclipselink,
- org.apache.derby;bundle-version="10.1.2"
+ org.eclipse.emf.teneo.orm;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
+Import-Package: org.apache.commons.logging;version="1.0.4"
diff --git a/examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml b/examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml
new file mode 100644
index 000000000..f6de441dd
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml
@@ -0,0 +1,251 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+ <persistence-unit-metadata>
+ <xml-mapping-metadata-complete/>
+ <persistence-unit-defaults>
+ <access>FIELD</access>
+ </persistence-unit-defaults>
+ </persistence-unit-metadata>
+ <mapped-superclass class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.IdentifiableImpl">
+ <attributes>
+ <id name="id">
+ <generated-value strategy="AUTO"/>
+ </id>
+ <basic name="eContainerFeatureID">
+ <column name="ECONT_FEAT_ID"/>
+ </basic>
+ <version name="version"/>
+ </attributes>
+ </mapped-superclass>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl" name="Book">
+ <table name="BOOK"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="title" optional="true"/>
+ <basic fetch="EAGER" name="pages" optional="true"/>
+ <basic fetch="EAGER" name="category" optional="true">
+ <enumerated>STRING</enumerated>
+ </basic>
+ <many-to-one fetch="EAGER" name="author" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-one>
+ <many-to-one fetch="EAGER" name="translator" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TranslatorImpl">
+ <join-column insertable="true" name="TRANSLATOR_TRANSLATOR_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-one>
+ <one-to-many fetch="LAZY" mapped-by="eContainer" name="styles" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookStylesMapEntryImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-many>
+ <one-to-one fetch="EAGER" name="cover" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.CoverImpl">
+ <join-column insertable="true" name="COVER_COVER_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ <one-to-one mapped-by="value" name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl" name="Library">
+ <table name="LIBRARY"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <one-to-many fetch="LAZY" mapped-by="eContainer" name="writers" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-many>
+ <one-to-many fetch="LAZY" mapped-by="eContainer" name="books" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-many>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl" name="Writer">
+ <table name="WRITER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <many-to-one name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl">
+ <join-column name="LIBRARY_WRITERS_ID"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </many-to-one>
+ <one-to-many fetch="LAZY" name="books" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <join-table name="WRITER_BOOKS">
+ <join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="BOOK_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </one-to-many>
+ <one-to-many fetch="LAZY" name="typewriters" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TypeWriterImpl">
+ <join-table name="WRITER_TYPEWRITERS">
+ <join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="TYPEWRITER_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </one-to-many>
+ <one-to-one fetch="EAGER" name="address" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.AddressImpl">
+ <join-column insertable="true" name="ADDRESS_ADDRESS_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ <many-to-many fetch="LAZY" name="publishers" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.PublisherImpl">
+ <join-table name="WRITER_PUBLISHERS">
+ <join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="PUBLISHER_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-many>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl" name="StringToBookMapEntry">
+ <table name="EMFLIB_LIBRARY_BOOK_MAP"/>
+ <inheritance strategy="JOINED"/>
+ <attribute-override name="id">
+ <column insertable="false" name="LIBRARY_BOOKS_ID" updatable="false"/>
+ </attribute-override>
+ <attributes>
+ <id name="key">
+ <column name="e_key"/>
+ </id>
+ <many-to-one name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl">
+ <join-column name="LIBRARY_BOOKS_ID"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </many-to-one>
+ <one-to-one fetch="EAGER" name="value" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <join-column insertable="true" name="BOOK_VALUE_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ <transient name="hash"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.AddressImpl" name="Address">
+ <table name="ADDRESS"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="town" optional="true"/>
+ <one-to-one mapped-by="address" name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.PublisherImpl" name="Publisher">
+ <table name="PUBLISHER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <many-to-many fetch="LAZY" mapped-by="publishers" name="writers" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <join-table name="EMFLIB_PUBLISHER_WRITERS">
+ <join-column insertable="true" name="PUBLISHER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverse-join-column insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ </join-table>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-many>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StyleImpl" name="Style">
+ <table name="STYLE"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookStylesMapEntryImpl" name="BookStylesMapEntry">
+ <table name="EMFLIB_BOOK_STYLE_MAP"/>
+ <inheritance strategy="JOINED"/>
+ <attribute-override name="id">
+ <column insertable="false" name="BOOK_STYLES_ID" updatable="false"/>
+ </attribute-override>
+ <attributes>
+ <id name="key">
+ <column name="e_key"/>
+ </id>
+ <many-to-one fetch="EAGER" name="value" optional="true" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StyleImpl">
+ <join-column insertable="true" name="STYLE_VALUE_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascade-persist/>
+ <cascade-merge/>
+ <cascade-refresh/>
+ </cascade>
+ </many-to-one>
+ <many-to-one name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <join-column name="BOOK_STYLES_ID"/>
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </many-to-one>
+ <transient name="hash"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TranslatorImpl" name="Translator">
+ <table name="TRANSLATOR"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <basic fetch="EAGER" name="location" optional="true"/>
+ <transient name="address"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TypeWriterImpl" name="TypeWriter">
+ <table name="TYPEWRITER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="maker" optional="true"/>
+ <basic fetch="EAGER" name="type" optional="true">
+ <enumerated>STRING</enumerated>
+ </basic>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.CoverImpl" name="Cover">
+ <table name="COVER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="colored" optional="true"/>
+ <one-to-one mapped-by="cover" name="eContainer" target-entity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <cascade>
+ <cascade-all/>
+ </cascade>
+ </one-to-one>
+ </attributes>
+ </entity>
+</entity-mappings> \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old b/examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old
new file mode 100644
index 000000000..a6676465f
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.eclipselink.examples.library/model/orm.xml_old
@@ -0,0 +1,247 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<orm:DocumentRoot xmlns:orm="http://java.sun.com/xml/ns/persistence/orm">
+ <entityMappings version="1.0">
+ <persistenceUnitMetadata>
+ <xmlMappingMetadataComplete/>
+ <persistenceUnitDefaults access="FIELD"/>
+ </persistenceUnitMetadata>
+ <mappedSuperclass class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.IdentifiableImpl">
+ <attributes>
+ <id name="id">
+ <generatedValue strategy="AUTO"/>
+ </id>
+ <basic name="eContainerFeatureID">
+ <column name="ECONT_FEAT_ID"/>
+ </basic>
+ <version name="version"/>
+ </attributes>
+ </mappedSuperclass>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl" name="Book">
+ <table name="BOOK"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="title" optional="true"/>
+ <basic fetch="EAGER" name="pages" optional="true"/>
+ <basic enumerated="STRING" fetch="EAGER" name="category" optional="true"/>
+ <manyToOne fetch="EAGER" name="author" optional="true" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascadePersist/>
+ <cascadeMerge/>
+ <cascadeRefresh/>
+ </cascade>
+ </manyToOne>
+ <manyToOne fetch="EAGER" name="translator" optional="true" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TranslatorImpl">
+ <joinColumn insertable="true" name="TRANSLATOR_TRANSLATOR_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascadePersist/>
+ <cascadeMerge/>
+ <cascadeRefresh/>
+ </cascade>
+ </manyToOne>
+ <oneToMany fetch="LAZY" mappedBy="eContainer" name="styles" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookStylesMapEntryImpl">
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToMany>
+ <oneToOne fetch="EAGER" name="cover" optional="true" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.CoverImpl">
+ <joinColumn insertable="true" name="COVER_COVER_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToOne>
+ <oneToOne mappedBy="value" name="eContainer" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl">
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToOne>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl" name="Library">
+ <table name="LIBRARY"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <oneToMany fetch="LAZY" mappedBy="eContainer" name="writers" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToMany>
+ <oneToMany fetch="LAZY" mappedBy="eContainer" name="books" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl">
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToMany>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl" name="Writer">
+ <table name="WRITER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <manyToOne name="eContainer" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl">
+ <joinColumn name="LIBRARY_WRITERS_ID"/>
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </manyToOne>
+ <oneToMany fetch="LAZY" name="books" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <joinTable name="WRITER_BOOKS">
+ <joinColumn insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverseJoinColumn insertable="true" name="BOOK_ID" nullable="false" unique="false" updatable="true"/>
+ </joinTable>
+ <cascade>
+ <cascadePersist/>
+ <cascadeMerge/>
+ <cascadeRefresh/>
+ </cascade>
+ </oneToMany>
+ <oneToMany fetch="LAZY" name="typewriters" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TypeWriterImpl">
+ <joinTable name="WRITER_TYPEWRITERS">
+ <joinColumn insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverseJoinColumn insertable="true" name="TYPEWRITER_ID" nullable="false" unique="false" updatable="true"/>
+ </joinTable>
+ <cascade>
+ <cascadePersist/>
+ <cascadeMerge/>
+ <cascadeRefresh/>
+ </cascade>
+ </oneToMany>
+ <oneToOne fetch="EAGER" name="address" optional="true" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.AddressImpl">
+ <joinColumn insertable="true" name="ADDRESS_ADDRESS_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToOne>
+ <manyToMany fetch="LAZY" name="publishers" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.PublisherImpl">
+ <joinTable name="WRITER_PUBLISHERS">
+ <joinColumn insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverseJoinColumn insertable="true" name="PUBLISHER_ID" nullable="false" unique="false" updatable="true"/>
+ </joinTable>
+ <cascade>
+ <cascadePersist/>
+ <cascadeMerge/>
+ <cascadeRefresh/>
+ </cascade>
+ </manyToMany>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StringToBookMapEntryImpl" name="StringToBookMapEntry">
+ <table name="EMFLIB_LIBRARY_BOOK_MAP"/>
+ <inheritance strategy="JOINED"/>
+ <attributeOverride name="id">
+ <column insertable="false" name="LIBRARY_BOOKS_ID" updatable="false"/>
+ </attributeOverride>
+ <attributes>
+ <id name="key">
+ <column name="e_key"/>
+ </id>
+ <manyToOne name="eContainer" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.LibraryImpl">
+ <joinColumn name="LIBRARY_BOOKS_ID"/>
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </manyToOne>
+ <oneToOne fetch="EAGER" name="value" optional="true" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <joinColumn insertable="true" name="BOOK_VALUE_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToOne>
+ <transient name="hash"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.AddressImpl" name="Address">
+ <table name="ADDRESS"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="town" optional="true"/>
+ <oneToOne mappedBy="address" name="eContainer" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToOne>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.PublisherImpl" name="Publisher">
+ <table name="PUBLISHER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <manyToMany fetch="LAZY" mappedBy="publishers" name="writers" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.WriterImpl">
+ <joinTable name="EMFLIB_PUBLISHER_WRITERS">
+ <joinColumn insertable="true" name="PUBLISHER_ID" nullable="false" unique="false" updatable="true"/>
+ <inverseJoinColumn insertable="true" name="WRITER_ID" nullable="false" unique="false" updatable="true"/>
+ </joinTable>
+ <cascade>
+ <cascadePersist/>
+ <cascadeMerge/>
+ <cascadeRefresh/>
+ </cascade>
+ </manyToMany>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StyleImpl" name="Style">
+ <table name="STYLE"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookStylesMapEntryImpl" name="BookStylesMapEntry">
+ <table name="EMFLIB_BOOK_STYLE_MAP"/>
+ <inheritance strategy="JOINED"/>
+ <attributeOverride name="id">
+ <column insertable="false" name="BOOK_STYLES_ID" updatable="false"/>
+ </attributeOverride>
+ <attributes>
+ <id name="key">
+ <column name="e_key"/>
+ </id>
+ <manyToOne fetch="EAGER" name="value" optional="true" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.StyleImpl">
+ <joinColumn insertable="true" name="STYLE_VALUE_ID" nullable="true" unique="false" updatable="true"/>
+ <cascade>
+ <cascadePersist/>
+ <cascadeMerge/>
+ <cascadeRefresh/>
+ </cascade>
+ </manyToOne>
+ <manyToOne name="eContainer" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <joinColumn name="BOOK_STYLES_ID"/>
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </manyToOne>
+ <transient name="hash"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TranslatorImpl" name="Translator">
+ <table name="TRANSLATOR"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="name" optional="true"/>
+ <basic fetch="EAGER" name="location" optional="true"/>
+ <transient name="address"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.TypeWriterImpl" name="TypeWriter">
+ <table name="TYPEWRITER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="maker" optional="true"/>
+ <basic enumerated="STRING" fetch="EAGER" name="type" optional="true"/>
+ </attributes>
+ </entity>
+ <entity class="org.eclipse.emf.teneo.eclipselink.examples.library.impl.CoverImpl" name="Cover">
+ <table name="COVER"/>
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <basic fetch="EAGER" name="colored" optional="true"/>
+ <oneToOne mappedBy="cover" name="eContainer" targetEntity="org.eclipse.emf.teneo.eclipselink.examples.library.impl.BookImpl">
+ <cascade>
+ <cascadeAll/>
+ </cascade>
+ </oneToOne>
+ </attributes>
+ </entity>
+ </entityMappings>
+</orm:DocumentRoot>

Back to the top