Commits

Anonymous committed 07ad773

Initial import from SourceForge

  • Participants
  • Parent commits ea408f6

Comments (0)

Files changed (3)

File src/java/com/opensymphony/workflow/spi/hibernate/HibernateCurrentStep.hbm.xml

+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
+
+<hibernate-mapping>
+    <class name="com.opensymphony.workflow.spi.hibernate.HibernateCurrentStep" table="OS_CURRENTSTEP">
+        <id name="id" unsaved-value="any">
+            <generator class="vm"/>
+        </id>
+        <property name="actionId"/>
+        <property name="caller"/>
+        <property name="finishDate"/>
+        <property name="startDate"/>
+        <property name="dueDate"/>
+        <property name="owner"/>
+        <property name="status"/>
+        <property name="stepId"/>
+
+        <many-to-one name="entry" class="com.opensymphony.workflow.spi.hibernate.HibernateWorkflowEntry" column="entryId"/>
+    </class>
+</hibernate-mapping>

File src/java/com/opensymphony/workflow/spi/hibernate/HibernateHistoryStep.hbm.xml

+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
+
+<hibernate-mapping>
+    <class name="com.opensymphony.workflow.spi.hibernate.HibernateHistoryStep" table="OS_HISTORYSTEP">
+        <id name="id" unsaved-value="any">
+            <generator class="vm"/>
+        </id>
+        <property name="actionId"/>
+        <property name="caller"/>
+        <property name="finishDate"/>
+        <property name="startDate"/>
+        <property name="dueDate"/>
+        <property name="owner"/>
+        <property name="status"/>
+        <property name="stepId"/>
+
+        <many-to-one name="entry" class="com.opensymphony.workflow.spi.hibernate.HibernateWorkflowEntry" column="entryId"/>
+    </class>
+</hibernate-mapping>

File src/java/com/opensymphony/workflow/spi/hibernate/HibernateWorkflowEntry.hbm.xml

+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
+
+<hibernate-mapping>
+    <class name="com.opensymphony.workflow.spi.hibernate.HibernateWorkflowEntry" table="OS_WFENTRY">
+        <id name="id" unsaved-value="any">
+            <generator class="vm"/>
+        </id>
+        <property name="workflowName"/>
+        <property name="initialized"/>
+
+        <list name="currentSteps" cascade="all" lazy="true" >
+            <key column="entryId"/>
+            <index column="stepIndex"/>
+            <one-to-many class="com.opensymphony.workflow.spi.hibernate.HibernateCurrentStep"/>
+        </list>
+
+        <list name="historySteps" cascade="all" lazy="true">
+            <key column="entryId"/>
+            <index column="stepIndex"/>
+            <one-to-many class="com.opensymphony.workflow.spi.hibernate.HibernateHistoryStep"/>
+        </list>
+
+    </class>
+</hibernate-mapping>