<?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="native"/>
        </id>
        <property name="workflowName" column="name"/>
        <property name="state"/>

        <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>

<?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="native"/>
        </id>
        <property name="workflowName" column="name"/>
        <property name="state"/>

        <list name="currentSteps" cascade="all" lazy="true" >
            <key column="entry_Id"/>
            <index column="stepIndex"/>
            <one-to-many class="com.opensymphony.workflow.spi.hibernate.HibernateCurrentStep"/>
        </list>

        <list name="historySteps" cascade="all" lazy="true">
            <key column="entry_Id"/>
            <index column="stepIndex"/>
            <one-to-many class="com.opensymphony.workflow.spi.hibernate.HibernateHistoryStep"/>
        </list>

    </class>
</hibernate-mapping>

Rename entryId to entry_Id, to be consistent with the step tables.
Rename entryId to entry_Id, to be consistent with the step tables.
