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

Some bidirectional associations do not use inverse="true"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • jBPM 3.2.10
    • jBPM 3.3.1 GA, jBPM 3.2.9
    • Runtime Engine
    • None
    • Low

      Currently couple of bidirectional associations do not use inverse="true" on one-to-many side (collection)

      The examples are

      • ProcessInstance.instances
      • CompositeLog.children

      I'm sure there are more of them.
      Lack of inverse="true" results in additional "UPDATE" statement being issued by hibernate to create a relationship from a one-to-many side.
      This is not necessary when java code is updating both ends of an association.

      Some use-cases where lots of new processes are being created would see a performance improvement.
      CompositeLog logging overhead will decrease (only INSERT will be issued - no UPDATE)

      Please consider reviewing all of your bidirectional associations with respect to this optimization.

            aguizar_jira Alejandro Guizar (Inactive)
            tawek Tomasz Wysocki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m