Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2658

Process variables of type hibernate-long-id/hibernate-string-id don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • jBPM 4.2
    • Runtime Engine
    • None

      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.

              rebody HuiSheng Xu (Inactive)
              dcornelius_jira Derek Cornelius (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: