Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_s_o_hibernate.hbm.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_s_o_hibernate.hbm.xml148
1 files changed, 148 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_s_o_hibernate.hbm.xml
new file mode 100755
index 000000000..a9d8c06c8
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_s_o_hibernate.hbm.xml
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping auto-import="false">
+ <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionImpl" entity-name="BookDefinition" abstract="true" lazy="false" table="`bookdefinition`">
+ <meta attribute="eclassName" inherit="false">BookDefinition</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <id name="uniqueName" type="java.lang.String">
+ <column not-null="true" unique="false" name="`uniquename`"/>
+ </id>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`description`"/>
+ </property>
+ <property name="location" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`location`"/>
+ </property>
+ </class>
+ <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.AdultBooksImpl" entity-name="AdultBooks" abstract="false" lazy="false" extends="BookDefinition" table="`adultbooks`">
+ <meta attribute="eclassName" inherit="false">AdultBooks</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <key>
+ <column name="`bookdefinition_uniquename`"/>
+ </key>
+ <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`title`"/>
+ </property>
+ <property name="checkedout" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`checkedout`"/>
+ </property>
+ <property name="userid" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`userid`"/>
+ </property>
+ </joined-subclass>
+ <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ResourceLinkImpl" entity-name="ResourceLink" abstract="true" lazy="false" table="`resourcelink`">
+ <meta attribute="eclassName" inherit="false">ResourceLink</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
+ <meta attribute="syntheticId" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`name`"/>
+ </property>
+ </class>
+ <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionResourceLinkImpl" entity-name="BookDefinitionResourceLink" abstract="false" lazy="false" extends="ResourceLink" table="`bookdefinitionresourcelink`">
+ <meta attribute="eclassName" inherit="false">BookDefinitionResourceLink</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <key>
+ <column name="`resourcelink_e_id`"/>
+ </key>
+ <property name="bookSubject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`booksubject`"/>
+ </property>
+ </joined-subclass>
+ <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BooksInLibImpl" entity-name="BooksInLib" abstract="false" lazy="false" table="`booksinlib`">
+ <meta attribute="eclassName" inherit="false">BooksInLib</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
+ <meta attribute="syntheticId" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <list name="library" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="booksinlib_library">
+ <column name="`booksinlib_library_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`booksinlib_library_idx`"/>
+ <one-to-many entity-name="Library"/>
+ </list>
+ </class>
+ <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ChildrenBooksImpl" entity-name="ChildrenBooks" abstract="false" lazy="false" extends="BookDefinition" table="`childrenbooks`">
+ <meta attribute="eclassName" inherit="false">ChildrenBooks</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <key>
+ <column name="`bookdefinition_uniquename`"/>
+ </key>
+ <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`title`"/>
+ </property>
+ <property name="cartoon" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`cartoon`"/>
+ </property>
+ <property name="popup" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
+ <column not-null="true" unique="false" name="`popup`"/>
+ </property>
+ <many-to-one name="publisherDefinitionRef" entity-name="PublisherDefinition" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="childrenbooks_publisherdefinitionref" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`publisherdefinition_publisherdefinitionref_uniquename`"/>
+ </many-to-one>
+ </joined-subclass>
+ <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`">
+ <meta attribute="eclassName" inherit="false">Library</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <id name="uniqueName" type="java.lang.String">
+ <column not-null="true" unique="false" name="`uniquename`"/>
+ </id>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <list name="library" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="library_library">
+ <column name="`library_library_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`library_library_idx`"/>
+ <one-to-many entity-name="Library"/>
+ </list>
+ <list name="abstractBookDefinitionGroup" table="`library_abstractbookdefinitiongroup`" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`library_abstractbookdefinitiongroup_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`library_abstractbookdefinitiongroup_idx`"/>
+ <one-to-many entity-name="Library_abstractBookDefinitionGroup"/>
+ </list>
+ </class>
+ <class entity-name="Library_abstractBookDefinitionGroup" lazy="false" table="`library_abstractbookdefinitiongroup`">
+ <meta attribute="featureMap" inherit="false">Library</meta>
+ <id type="long">
+ <generator class="native"/>
+ </id>
+ <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <property name="fme_feature" type="java.lang.String"/>
+ <many-to-one name="abstractBookDefinition" entity-name="BookDefinition" lazy="false" cascade="all" foreign-key="library_abstractbookdefinition" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`abstractbookdefinitiongroup_bookdefinition_abstractbookdefinition_uniquename`"/>
+ </many-to-one>
+ </class>
+ <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.PublisherDefinitionImpl" entity-name="PublisherDefinition" abstract="false" lazy="false" extends="BookDefinition" table="`publisherdefinition`">
+ <meta attribute="eclassName" inherit="false">PublisherDefinition</meta>
+ <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta>
+ <key>
+ <column name="`bookdefinition_uniquename`"/>
+ </key>
+ <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`title`"/>
+ </property>
+ <many-to-one name="resourceLink" entity-name="BookDefinitionResourceLink" lazy="false" cascade="all" foreign-key="publisherdefinition_resourcelink" insert="true" update="true" not-null="true" unique="true">
+ <column not-null="true" unique="false" name="`bookdefinitionresourcelink_resourcelink_e_id`"/>
+ </many-to-one>
+ </joined-subclass>
+</hibernate-mapping> \ No newline at end of file

Back to the top