Projet

Général

Profil

Bug #2904 » mapping.xml

Anonyme, 17/02/2012 15:46

 
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright (C) 2000 - 2011 Silverpeas

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

As a special exception to the terms and conditions of version 3.0 of
the GPL, you may redistribute this Program in connection with Free/Libre
Open Source Software ("FLOSS") applications as described in Silverpeas's
FLOSS exception. You should have received a copy of the text describing
the FLOSS exception, and it is also available here:
"http://repository.silverpeas.com/legal/licensing"

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

-->

<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd">
<mapping>
<class name="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl" key-generator="MAX" identity="instanceId">
<cache-type type="none"/>
<map-to table="sb_workflow_processinstance" />
<field name="locked" type="integer" get-method="isLockedByAdminCastor" set-method="setLockedByAdminCastor">
<sql name="locked" />
<bind-xml name="locked" />
</field>
<field name="errorStatus" type="integer" get-method="getErrorStatusCastor" set-method="setErrorStatusCastor">
<sql name="errorstatus" />
<bind-xml name="errorStatus" />
</field>
<field name="timeoutStatus" type="integer" get-method="getTimeoutStatusCastor" set-method="setTimeoutStatusCastor">
<sql name="timeoutstatus" />
<bind-xml name="timeoutStatus" />
</field>
<field name="instanceId" type="string">
<sql type="integer" name="instanceid" />
<bind-xml name="instanceId" />
</field>
<field name="modelId" type="string">
<sql name="modelid" />
<bind-xml name="modelId" />
</field>
<field name="historySteps" collection="vector" type="com.silverpeas.workflow.engine.instance.HistoryStepImpl" set-method="castor_setHistorySteps" get-method="castor_getHistorySteps">
<sql many-key="instanceid" />
<bind-xml name="historySteps" />
</field>
<field name="questions" collection="vector" type="com.silverpeas.workflow.engine.instance.QuestionImpl" set-method="castor_setQuestions" get-method="castor_getQuestions">
<sql many-key="instanceid" />
<bind-xml name="questions" />
</field>
<field name="interestedUsers" collection="vector" type="com.silverpeas.workflow.engine.instance.InterestedUser" set-method="castor_setInterestedUsers" get-method="castor_getInterestedUsers">
<sql many-key="instanceid" />
<bind-xml name="interestedUsers" />
</field>
<field name="workingUsers" collection="vector" type="com.silverpeas.workflow.engine.instance.WorkingUser" set-method="castor_setWorkingUsers" get-method="castor_getWorkingUsers">
<bind-xml name="workingUsers" />
</field>
<field name="lockingUsers" collection="vector" type="com.silverpeas.workflow.engine.instance.LockingUser" set-method="castor_setLockingUsers" get-method="castor_getLockingUsers">
<sql many-key="instanceid" />
<bind-xml name="lockingUsers" />
</field>
<field name="activeStates" collection="vector" type="com.silverpeas.workflow.engine.instance.ActiveState" set-method="castor_setActiveStates" get-method="castor_getActiveStates">
<sql many-key="instanceid" />
<bind-xml name="activeStates" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.instance.WorkingUser" depends="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_workinguser" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="processInstance" type="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl">
<sql name="instanceid" />
<bind-xml name="processInstance" />
</field>
<field name="userId" type="string">
<sql name="userid" />
<bind-xml name="userId" />
</field>
<field name="usersRole" type="string">
<sql name="usersrole" />
<bind-xml name="usersRole" />
</field>
<field name="state" type="string">
<sql name="state" />
<bind-xml name="state" />
</field>
<field name="role" type="string">
<sql name="role" />
<bind-xml name="role" />
</field>
<field name="groupId" type="string">
<sql name="groupid" />
<bind-xml name="groupId" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.instance.QuestionImpl" depends="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_question" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="processInstance" type="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl">
<sql name="instanceid" />
<bind-xml name="processInstance" />
</field>
<field name="fromState" type="string" get-method="getFromStateName" set-method="setFromStateName">
<sql name="fromstate" />
<bind-xml name="fromState" />
</field>
<field name="targetState" type="string" get-method="getTargetStateName" set-method="setTargetStateName">
<sql name="targetstate" />
<bind-xml name="targetState" />
</field>
<field name="questionText" type="string">
<sql name="questiontext" />
<bind-xml name="questionText" />
</field>
<field name="responseText" type="string">
<sql name="responsetext" />
<bind-xml name="responseText" />
</field>
<field name="questionDate" type="date">
<sql type="timestamp" name="questiondate" dirty="ignore" />
<bind-xml name="questionDate" />
</field>
<field name="responseDate" type="date">
<sql type="timestamp" name="responsedate" dirty="ignore" />
<bind-xml name="responseDate" />
</field>
<field name="relevant" type="integer" get-method="isRelevantCastor" set-method="setRelevantCastor">
<sql name="relevant" />
<bind-xml name="relevant" />
</field>
<field name="fromUserId" type="string">
<sql name="fromuserid" />
<bind-xml name="fromUserId" />
</field>
<field name="toUserId" type="string">
<sql name="touserid" />
<bind-xml name="toUserId" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.instance.ActiveState" depends="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_activestate" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="processInstance" type="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl">
<sql name="instanceid" />
<bind-xml name="processInstance" />
</field>
<field name="state" type="string">
<sql name="state" />
<bind-xml name="state" />
</field>
<field name="backStatus" type="integer" get-method="getBackStatusCastor" set-method="setBackStatusCastor">
<sql name="backstatus" />
<bind-xml name="backStatus" />
</field>
<field name="timeoutStatus" type="integer">
<sql name="timeoutstatus" />
<bind-xml name="timeoutStatus" />
</field>
<field name="timeoutDate" type="date">
<sql type="timestamp" name="timeoutdate" dirty="ignore"/>
<bind-xml name="timeoutDate" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.instance.HistoryStepImpl" depends="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_historystep" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="processInstance" type="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl">
<sql name="instanceid" />
<bind-xml name="processInstance" />
</field>
<field name="userId" type="string">
<sql name="userid" />
<bind-xml name="userId" />
</field>
<field name="userRoleName" type="string">
<sql name="userrolename" />
<bind-xml name="userRoleName" />
</field>
<field name="action" type="string">
<sql name="action" />
<bind-xml name="action" />
</field>
<field name="actionDate" type="date">
<sql type="timestamp" name="actiondate" dirty="ignore"/>
<bind-xml name="actionDate" />
</field>
<field name="resolvedState" type="string">
<sql name="resolvedstate" />
<bind-xml name="resolvedState" />
</field>
<field name="resultingState" type="string">
<sql name="tostate" />
<bind-xml name="resultingState" />
</field>
<field name="actionStatus" type="integer">
<sql name="actionstatus" />
<bind-xml name="actionStatus" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.instance.UndoHistoryStep" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_undo_step" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="stepId" type="string">
<sql type="integer" name="stepid" />
<bind-xml name="stepId" />
</field>
<field name="instanceId" type="string">
<sql type="integer" name="instanceid" />
<bind-xml name="instanceId" />
</field>
<field name="action" type="string">
<sql name="action" />
<bind-xml name="action" />
</field>
<field name="parameters" type="string">
<sql name="parameters" />
<bind-xml name="parameters" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.instance.LockingUser" depends="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_lockinguser" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="userId" type="string">
<sql name="userid" />
<bind-xml name="userId" />
</field>
<field name="processInstance" type="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl">
<sql name="instanceid" />
<bind-xml name="processInstance" />
</field>
<field name="state" type="string">
<sql name="state" />
<bind-xml name="state" />
</field>
<field name="lockDate" type="date">
<sql type="timestamp" name="lockdate" dirty="ignore" />
<bind-xml name="lockDate" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.instance.InterestedUser" depends="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_interesteduser" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="userId" type="string">
<sql name="userid" />
<bind-xml name="userId" />
</field>
<field name="usersRole" type="string">
<sql name="usersrole" />
<bind-xml name="usersRole" />
</field>
<field name="processInstance" type="com.silverpeas.workflow.engine.instance.ProcessInstanceImpl">
<sql name="instanceid" />
<bind-xml name="processInstance" />
</field>
<field name="state" type="string">
<sql name="state" />
<bind-xml name="state" />
</field>
<field name="role" type="string">
<sql name="role" />
<bind-xml name="role" />
</field>
<field name="groupId" type="string">
<sql name="groupid" />
<bind-xml name="groupId" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.user.UserSettingsImpl" key-generator="MAX" identity="settingsId">
<cache-type type="none"/>
<map-to table="sb_workflow_usersettings" />
<field name="settingsId" type="string">
<sql type="integer" name="settingsid" />
<bind-xml name="settingsId" />
</field>
<field name="userId" type="string">
<sql name="userid" />
<bind-xml name="userId" />
</field>
<field name="peasId" type="string">
<sql name="peasid" />
<bind-xml name="peasId" />
</field>
<field name="userInfos" collection="vector" type="com.silverpeas.workflow.engine.user.UserInfoImpl" set-method="castor_setUserInfos" get-method="castor_getUserInfos">
<sql many-key="settingsid" />
<bind-xml name="userInfos" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.user.UserInfoImpl" depends="com.silverpeas.workflow.engine.user.UserSettingsImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_userinfo" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="name" type="string">
<sql name="name" />
<bind-xml name="name" />
</field>
<field name="value" type="string">
<sql name="value" />
<bind-xml name="value" />
</field>
<field name="userSettings" type="com.silverpeas.workflow.engine.user.UserSettingsImpl">
<sql name="settingsid" />
<bind-xml name="userSettings" />
</field>
</class>
<class name="com.silverpeas.workflow.engine.error.WorkflowErrorImpl" key-generator="MAX" identity="id">
<cache-type type="none"/>
<map-to table="sb_workflow_error" />
<field name="id" type="string">
<sql type="integer" name="id" />
<bind-xml name="id" />
</field>
<field name="instanceId" type="string">
<sql type="integer" name="instanceid" />
<bind-xml name="instanceId" />
</field>
<field name="stepId" type="string">
<sql type="integer" name="stepid" />
<bind-xml name="stepId" />
</field>
<field name="errorMessage" type="string">
<sql name="errormessage" />
<bind-xml name="errorMessage" />
</field>
<field name="stackTrace" type="string">
<sql name="stacktrace" />
<bind-xml name="stackTrace" />
</field>
<field name="userId" type="string">
<sql name="userid" />
<bind-xml name="userId" />
</field>
<field name="actionName" type="string">
<sql name="actionname" />
<bind-xml name="actionName" />
</field>
<field name="actionDate" type="date">
<sql type="timestamp" name="actiondate" dirty="ignore" />
<bind-xml name="actionDate" />
</field>
<field name="userRole" type="string">
<sql name="userrole" />
<bind-xml name="userRole" />
</field>
<field name="stateName" type="string">
<sql name="statename" />
<bind-xml name="stateName" />
</field>
</class>
</mapping>
(2-2/2)