[
https://jira.jboss.org/browse/JBPM-2658?page=com.atlassian.jira.plugin.sy...
]
Renaud Bruyeron commented on JBPM-2658:
---------------------------------------
I do not understand why this issue is marked as resolved. The code is still incorrect in
SVN because it does not check if value is a HibernateProxy.
This creates problems for example when trying to pass an hibernate entity to a sub-process
(via parameter-in).
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