demiched wrote:
I am pretty sure you can set the column type to "text" and the generation utility will create a CLOB data type in the DB. I know it creates a TEXT for SQL Server and supposedly it does the same for other DBs that use CLOB.
Thanks, I realised that. The point is in the JBPM mapping files fields are mapped like this:
<property name="message" column="MESSAGE_" length="4000"/>
i.e. no type sepcified (gleamed via introspsection), and resolving to java.lang.String, together with a column name and a length.
I do not want to modify the JBPM source code unless I really have to.
My point to summarise is this:
If hibernate ends up generating really complicated SQL, which ends up blowing the DB2 limit, then is there any way of getting hibernate to generate CLOBS at a lower cut off point then whatever the current default is, so that complex queries end up returning smaller total column widths, thereby fitting inside the DB2 32k limit.