diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml')
-rwxr-xr-x | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml new file mode 100755 index 000000000..9562f4eea --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,180 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl" entity-name="WorkflowElement" abstract="true" lazy="false" discriminator-value="WorkflowElement" table="`workflowelement`"> + <meta attribute="eclassName">WorkflowElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`id`"/> + </id> + <discriminator type="string"> + <column name="dtype" index="workflowelementdtype" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="x" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`x`"/> + </property> + <property name="y" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`y`"/> + </property> + <property name="width" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`width`"/> + </property> + <property name="height" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`height`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowImpl" entity-name="Workflow" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Workflow"> + <meta attribute="eclassName">Workflow</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <list name="nodes" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`workflownode_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_nodes_idx`"/> + <one-to-many entity-name="WorkflowNode"/> + </list> + <list name="edges" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`edge_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + <list name="comments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`comment_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_comments_idx`"/> + <one-to-many entity-name="Comment"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowNodeImpl" entity-name="WorkflowNode" abstract="true" lazy="false" extends="WorkflowElement" discriminator-value="WorkflowNode"> + <meta attribute="eclassName">WorkflowNode</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="workflownode_workflow" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`workflownode_workflow_id`"/> + </many-to-one> + <list name="outputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`outputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_outputs_idx`"/> + <one-to-many entity-name="OutputPort"/> + </list> + <list name="inputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`inputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_inputs_idx`"/> + <one-to-many entity-name="InputPort"/> + </list> + <property name="isStart" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`isstart`"/> + </property> + <property name="isFinish" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`isfinish`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.EdgeImpl" entity-name="Edge" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Edge"> + <meta attribute="eclassName">Edge</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_workflow" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_workflow_id`"/> + </many-to-one> + <many-to-one name="target" entity-name="InputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_target" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_target_id`"/> + </many-to-one> + <many-to-one name="source" entity-name="OutputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_source" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_source_id`"/> + </many-to-one> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.PortImpl" entity-name="Port" abstract="true" lazy="false" extends="WorkflowElement" discriminator-value="Port"> + <meta attribute="eclassName">Port</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.InputPortImpl" entity-name="InputPort" abstract="false" lazy="false" extends="Port" discriminator-value="InputPort"> + <meta attribute="eclassName">InputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="inputport_node" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`inputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_target_id`" not-null="false" unique="false"/> + </key> + <list-index column="`inputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.OutputPortImpl" entity-name="OutputPort" abstract="false" lazy="false" extends="Port" discriminator-value="OutputPort"> + <meta attribute="eclassName">OutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="outputport_node" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`outputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_source_id`" not-null="false" unique="false"/> + </key> + <list-index column="`outputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.FaultImpl" entity-name="Fault" abstract="false" lazy="false" extends="OutputPort" discriminator-value="Fault"> + <meta attribute="eclassName">Fault</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CompoundTaskImpl" entity-name="CompoundTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="CompoundTask"> + <meta attribute="eclassName">CompoundTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="subworkflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="compoundtask_subworkflow" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`workflow_subworkflow_id`"/> + </many-to-one> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TransformationTaskImpl" entity-name="TransformationTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="TransformationTask"> + <meta attribute="eclassName">TransformationTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <property name="transformExpression" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`transformexpression`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalTaskImpl" entity-name="ConditionalTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="ConditionalTask"> + <meta attribute="eclassName">ConditionalTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.LoopTaskImpl" entity-name="LoopTask" abstract="false" lazy="false" extends="CompoundTask" discriminator-value="LoopTask"> + <meta attribute="eclassName">LoopTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <property name="whileCondition" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`whilecondition`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalOutputPortImpl" entity-name="ConditionalOutputPort" abstract="false" lazy="false" extends="OutputPort" discriminator-value="ConditionalOutputPort"> + <meta attribute="eclassName">ConditionalOutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <property name="condition" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`condition`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CommentImpl" entity-name="Comment" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Comment"> + <meta attribute="eclassName">Comment</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="comment_workflow" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`comment_workflow_id`"/> + </many-to-one> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="Task"> + <meta attribute="eclassName">Task</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> +</hibernate-mapping>
\ No newline at end of file |