[jboss-user] [JBoss jBPM] - oracle : varchar length limited to 255

gogoasa do-not-reply at jboss.com
Fri Jun 22 09:25:24 EDT 2007


Use case : I have a string variable, containing an exception stacktrace formatted as a string. I want to put this variable into the execution context so that users can see it listed in the web console and understand why the process has failed.

The stacktrace being big, I get a Hibernate exception. Verifying the length of my table varchar fields, I see the JBPM_VARIABLEINSTANCE.STRINGVALUE_ (where StringInstance variables store their values) is very limited (from the generated DDL):

STRINGVALUE_ varchar2(255 char)

Still, the StringInstance.hbm.xml correctly specifies :

<property name="value" type="string" column="STRINGVALUE_" length="4000"/>

4000 being the biggest varchar2 size on Oracle.

So I don't understand why Hibernate does not respect the specified length of 4000 when generating DDL. All my varchar2 fields are limited to 255.

Anybody has an idea?

Thanks in advance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056870#4056870

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056870



More information about the jboss-user mailing list