[
https://jira.jboss.org/jira/browse/JBPM-1843?page=com.atlassian.jira.plug...
]
Alejandro Guizar commented on JBPM-1843:
----------------------------------------
In my user branch I reverted properties of type text to string with length 4000, exactly
as they were in jBPM 3.2.x. In the specific case of Sybase, we have a request for the text
type filed as JBPM-701. The text type was also requested for DB2 when we support it. We
have at least three options.
1. Provide Sybase-specific mapping documents, as shown below. The problem with this
approach is that the documents contain duplicate mappings and pose a maintenance problem.
Furthermore, this option would also lead us to introduce DB2-specific mappings in the
future.
Node.hbm.xml
<property name="description" column="DESCRIPTION_"
length="4000">
<type name="string_max">
<param name="length">4000</param>
</type>
</property>
Node.sybase.hbm.xml
<property name="description" column="DESCRIPTION_"
type="text"/>
2. Introduce a "jbpm_text" type definition. Resolve the type to "text"
or "string" according to the target database.
hibernate.types.default.hbm.xml
<typedef name="jbpm_text"
class="org.hibernate.type.StringType">
<param name="length">4000</param>
</typedef>
hibernate.types.sybase.hbm.xml
<typedef name="jbpm_text" class="org.hibernate.type.TextType"
/>
Node.hbm.xml
<property name="description" column="DESCRIPTION_"
type="jbpm_text"/>
The class attribute may have to point to a UserType implementation, as opposed to a
standard Type implementation, but you get the idea.
For more information:
http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping-types.html...
3. Same as (2) except we replace "jbpm_text" occurrences in the mapping files
with "text" or "string", according to the target database.
Revert to jbpm-3.2.2 schema and provide a defined migration path
----------------------------------------------------------------
Key: JBPM-1843
URL:
https://jira.jboss.org/jira/browse/JBPM-1843
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Core Engine
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Priority: Critical
Fix For: jBPM 3.3.1 GA
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira