1 Reply Latest reply on Dec 28, 2011 2:44 PM by dsalvi

    Avoid using hibernate in JBPM 4.4

    dsalvi

      Hi,

       

      I am using JBPM 4.4 as a library within a framework I have made myself.

      I am not interested in persistence at all, thus I would like to get rid of all the hibernate jars and its configuration.

      Most importantly, I am getting an exception while trying to save a variable:

       

      instance not of expected entity type: org.jbpm.pvm.internal.type.variable.UnpersistableVariable is not a: org.jbpm.pvm.internal.type.Variable

       

      which I guess depends on the fact that the variable I am creating is an object I internally use which hibernate does not know how treat.

       

      Is there some way to completely remove hibernate from jbpm?

       

      If not, which would be the simplest way to avoid this exception?

       

       

      Thanks in advance,

       

       

      Dario

        • 1. Re: Avoid using hibernate in JBPM 4.4
          dsalvi

          Hi,

           

          I have managed to avoid the exception by declaring my custom object as serializable.

           

          Regarding persistence I am using HSQL without writing any file (memory tables), but I am still interested in removing all the hibernate from JBPM if possible.

           

           

          Dario