[
http://jira.jboss.com/jira/browse/JBPM-982?page=comments#action_12365381 ]
Adrian Dimulescu commented on JBPM-982:
---------------------------------------
the fix looks as simple as adding a parameter to the native generator, i.e. for
ByteArray.hbm.xml, instead of :
<generator class="native" />
use :
<generator class="native" >
<param name="sequence">seq_jbpm_bytearray</param>
</generator>
The "sequence" parameter is, of course, specific to the sequence generator and
will only be taken into account in the specific cases (oracle included) where the
"native" generator translates to the "sequence" generator.
I will try a generalized usage of this fix and post a patch if everyhing works ok.
oracle : one single sequence for all jbpm tables
------------------------------------------------
Key: JBPM-982
URL:
http://jira.jboss.com/jira/browse/JBPM-982
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM jPDL 3.2
Environment: jBPM persisted in Oracle database
Reporter: Adrian Dimulescu
Assigned To: Tom Baeyens
Fix For: jBPM jPDL 3.2.1
In order to generate table ids on Oracle, the hibernate-generated DDL specifies one
single sequence :
create sequence hibernate_sequence;
That means that successive values for, say, deployed processes JBPM_TASK can be as far
away from each other as 1 from 15000 (given that the same sequence generator is used for
the lines in the JBPM_LOG table too).
The IDs do have business meaning, at least as far as the JBPM console is concerned : the
ID's are shown there in order to identify processes, tasks etc. That may be confusing
for users as they may wonder whatever happened to the tasks between 19 (last he solved)
and 57 (the next one).
Ronald van Kuijk says: jbpm 3.2.1 (don't know about 3.2) has a real business key.
That could/should be used in the next console.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira