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

    Avoid using hibernate in JBPM 4.4

    Dario Salvi Newbie

      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