[
https://jira.jboss.org/browse/JBPM-2658?page=com.atlassian.jira.plugin.sy...
]
HuiSheng Xu commented on JBPM-2658:
-----------------------------------
Hi Renaud, Could you provide a testcase for it scenario? It will help us to investigate
this problem. Then we could re-open this issue. Thank you very much.
Process variables of type hibernate-long-id/hibernate-string-id
don't work
--------------------------------------------------------------------------
Key: JBPM-2658
URL:
https://jira.jboss.org/browse/JBPM-2658
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.2
Reporter: Derek Cornelius
Assignee: HuiSheng Xu
This is the same problem as JBPM-2474.
The problem is in HibernateIdMatcher.
if (sessionFactory!=null) {
ClassMetadata classMetadata = sessionFactory.getClassMetadata(value.getClass());
matches = ( (classMetadata!=null)
&&
(classMetadata.getIdentifierType().getClass()==getIdType())
);
}
value.getClass() is returning the Javassist proxy class that is not found.
It needs to check for "value.getClass().getSuperClass()" if value instance of
HibernateProxy.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira