Author: alex.guizar(a)jboss.com
Date: 2008-09-24 01:46:38 -0400 (Wed, 24 Sep 2008)
New Revision: 2322
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/db/hibernate.queries.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/action/Script.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ExceptionHandler.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Node.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ProcessDefinition.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Transition.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/exe/Comment.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/log/ActionLog.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/instantiation/Delegation.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/job/Job.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/logging/log/MessageLog.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/module/def/ModuleDefinition.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/def/Task.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml
Log:
[JBPM-701] replaced long (4000) varchar columns with text columns, works for hsqldb, gotta
test other databases
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -8,9 +8,9 @@
<subclass
name="org.jbpm.context.exe.variableinstance.HibernateStringInstance"
extends="org.jbpm.context.exe.VariableInstance"
discriminator-value="I">
- <any name="value" id-type="string"
cascade="save-update">
+ <any name="value" id-type="text"
cascade="save-update">
<column name="STRINGIDCLASS_" />
- <column name="STRINGVALUE_" length="4000" />
+ <column name="STRINGVALUE_"/>
</any>
</subclass>
</hibernate-mapping>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -17,7 +17,7 @@
<property name="repository" column="LONGIDCLASS_" />
<property name="workspace" column="STRINGIDCLASS_" />
- <property name="path" column="STRINGVALUE_"
length="4000" />
+ <property name="path" column="STRINGVALUE_"
type="text" />
</subclass>
</hibernate-mapping>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -8,6 +8,6 @@
<subclass name="org.jbpm.context.exe.variableinstance.StringInstance"
extends="org.jbpm.context.exe.VariableInstance"
discriminator-value="S">
- <property name="value" type="string"
column="STRINGVALUE_" length="4000"/>
+ <property name="value" type="text"
column="STRINGVALUE_"/>
</subclass>
</hibernate-mapping>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -9,16 +9,8 @@
<subclass name="org.jbpm.context.log.variableinstance.StringUpdateLog"
extends="org.jbpm.context.log.VariableUpdateLog"
discriminator-value="U">
- <property name="oldValue" column="OLDSTRINGVALUE_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
- <property name="newValue" column="NEWSTRINGVALUE_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="oldValue" column="OLDSTRINGVALUE_"
type="text"/>
+ <property name="newValue" column="NEWSTRINGVALUE_"
type="text"/>
</subclass>
</hibernate-mapping>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/db/hibernate.queries.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/db/hibernate.queries.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/db/hibernate.queries.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -6,8 +6,6 @@
<hibernate-mapping>
- <typedef class="org.jbpm.db.hibernate.StringMax"
name="string_max" />
-
<!-- related to ProcessDefintion -->
<!-- ########################### -->
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/action/Script.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/action/Script.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/action/Script.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -7,7 +7,7 @@
<subclass name="org.jbpm.graph.action.Script"
discriminator-value="S"
extends="org.jbpm.graph.def.Action">
- <property name="expression" column="EXPRESSION_"
length="4000" />
+ <property name="expression" column="EXPRESSION_"
type="text" />
<set name="variableAccesses" cascade="all">
<key column="SCRIPT_" foreign-key="FK_VARACC_SCRIPT"/>
<one-to-many class="org.jbpm.context.def.VariableAccess" />
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ExceptionHandler.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ExceptionHandler.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ExceptionHandler.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -8,7 +8,8 @@
table="JBPM_EXCEPTIONHANDLER">
<id name="id" column="ID_"><generator
class="native" /></id>
- <property name="exceptionClassName"
column="EXCEPTIONCLASSNAME_" length="4000"/>
+ <property name="exceptionClassName"
column="EXCEPTIONCLASSNAME_"
+ type="text" />
<any name="graphElement" id-type="long"
meta-type="char">
<meta-value value="A"
class="org.jbpm.taskmgmt.def.Task"/>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Node.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Node.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Node.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -25,11 +25,7 @@
<!-- GRAPHELEMENT -->
<property name="name" column="NAME_"/>
- <property name="description" column="DESCRIPTION_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="description" column="DESCRIPTION_"
type="text"/>
<many-to-one name="processDefinition"
column="PROCESSDEFINITION_"
foreign-key="FK_NODE_PROCDEF"
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ProcessDefinition.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ProcessDefinition.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/ProcessDefinition.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -13,11 +13,7 @@
<!-- GRAPHELEMENT -->
<!-- base class fields are mapped here -->
<property name="name" column="NAME_" />
- <property name="description" column="DESCRIPTION_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="description" column="DESCRIPTION_"
type="text"/>
<map name="events" cascade="all">
<key column="PROCESSDEFINITION_"
foreign-key="FK_EVENT_PROCDEF" />
<index column="EVENTTYPE_" type="string"/>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Transition.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Transition.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/def/Transition.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -10,11 +10,7 @@
<!-- GRAPHELEMENT -->
<property name="name" column="NAME_"/>
- <property name="description" column="DESCRIPTION_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="description" column="DESCRIPTION_"
type="text"></property>
<many-to-one name="processDefinition"
column="PROCESSDEFINITION_"
foreign-key="FK_TRANS_PROCDEF"
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/exe/Comment.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/exe/Comment.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/exe/Comment.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -11,11 +11,7 @@
<property name="actorId" column="ACTORID_"/>
<property name="time" column="TIME_"/>
- <property name="message" column="MESSAGE_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="message" column="MESSAGE_"
type="text"/>
<many-to-one name="token"
column="TOKEN_"
foreign-key="FK_COMMENT_TOKEN"
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/log/ActionLog.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/log/ActionLog.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/graph/log/ActionLog.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -10,13 +10,7 @@
extends="org.jbpm.logging.log.ProcessLog"
discriminator-value="A">
- <property name="exception"
- column="EXCEPTION_"
- length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="exception" column="EXCEPTION_"
type="text"/>
<many-to-one name="action"
column="ACTION_"
class="org.jbpm.graph.def.Action"
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/instantiation/Delegation.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/instantiation/Delegation.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/instantiation/Delegation.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -8,8 +8,8 @@
table="JBPM_DELEGATION">
<id name="id" column="ID_"><generator
class="native" /></id>
- <property name="className" column="CLASSNAME_"
length="4000"/>
- <property name="configuration" column="CONFIGURATION_"
length="4000"/>
+ <property name="className" column="CLASSNAME_"
type="text" />
+ <property name="configuration" column="CONFIGURATION_"
type="text" />
<property name="configType" column="CONFIGTYPE_"/>
<many-to-one name="processDefinition"
Modified: jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/job/Job.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/job/Job.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/job/Job.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -35,11 +35,7 @@
<property name="isExclusive" column="ISEXCLUSIVE_" />
<property name="lockOwner" column="LOCKOWNER_" />
<property name="lockTime" column="LOCKTIME_" />
- <property name="exception" column="EXCEPTION_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="exception" column="EXCEPTION_"
type="text"/>
<property name="retries" column="RETRIES_" />
</class>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/logging/log/MessageLog.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/logging/log/MessageLog.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/logging/log/MessageLog.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -9,11 +9,7 @@
<subclass name="org.jbpm.logging.log.MessageLog"
extends="org.jbpm.logging.log.ProcessLog"
discriminator-value="M">
- <property name="message" column="MESSAGE_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="message" column="MESSAGE_"
type="text"/>
</subclass>
</hibernate-mapping>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/module/def/ModuleDefinition.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/module/def/ModuleDefinition.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/module/def/ModuleDefinition.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -21,7 +21,7 @@
<!-- : -->
<!-- : -->
- <property name="name" column="NAME_"
length="4000"/>
+ <property name="name" column="NAME_"/>
<many-to-one name="processDefinition"
column="PROCESSDEFINITION_"
foreign-key="FK_MODDEF_PROCDEF"
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/def/Task.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/def/Task.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/def/Task.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -12,11 +12,7 @@
<!-- GRAPHELEMENT -->
<property name="name" column="NAME_" />
- <property name="description" column="DESCRIPTION_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="description" column="DESCRIPTION_"
type="text"/>
<many-to-one name="processDefinition"
column="PROCESSDEFINITION_"
foreign-key="FK_TASK_PROCDEF"
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml 2008-09-24
05:36:48 UTC (rev 2321)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml 2008-09-24
05:46:38 UTC (rev 2322)
@@ -14,11 +14,7 @@
<version name="version" column="VERSION_" />
<property name="name" column="NAME_" />
- <property name="description" column="DESCRIPTION_"
length="4000">
- <type name="string_max">
- <param name="length">4000</param>
- </type>
- </property>
+ <property name="description" column="DESCRIPTION_"
type="text"/>
<property name="actorId" column="ACTORID_"
index="IDX_TASK_ACTORID"/>
<property name="create" column="CREATE_" />
<property name="start" column="START_" />