whabelitz [https://community.jboss.org/people/whabelitz] created the discussion

"jBPM 5.4: Structure of table ProcessInstanceInfo; invalid column "ID""

To view the discussion, visit: https://community.jboss.org/message/796337#796337

--------------------------------------------------------------
Hi,

We use jBPM 5.4 on a JBoss 7.1.1 server together with an Oracle database. We 
use JPA2 and put the necessary persistence configurations file inside our 
ejb.jar (persistence.xml (derived from jbpm-persistence-JPA2.xml) and 
JBPMorm-JPA2, ProcessInstanceInfoMapping-JPA2.xml, ExtraIndexes.hbm.xml from 
jbpm-persistence-jpa.jar)

We create the schema for jbpm by using the sql script which was created from 
the ant task "jbpm.schemaexport".
Inside these script the table ProcessInstanceInfo has the columns InstanceId, 
OPTLOCK, processId, startDate, lastReadDate, lastModificationDate, state, 
processInstanceByteArray.
This matches the description inside ProcessInstanceInfoMapping-JPA2.xml.

When working with processes, the following errors occurs:
INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Hibernate: insert into 
ProcessInstanceInfo (id, lastModificationDate, lastReadDate, processId, 
processInstanceByteArray, startDate, state, OPTLOCK, InstanceId) values (?, ?, 
?, ?, ?, ?, ?, ?, ?)
WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] 
(http-localhost-127.0.0.1-8080-1) SQL Error: 904, SQLState: 42000
ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] 
(http-localhost-127.0.0.1-8080-1) ORA-00904: "ID": invalid identifier

There is no column ID inside the table and no field with this name defined 
inside the mapping but there are get and set methods inside the corresponding 
class which referres to the field processInstanceId.

Any idea why this error occurrs and how to fix it?

Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796337#796337]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to