Camel
  1. Camel
  2. CAMEL-3742

Upgrade camel-jpa to OpenJPA 2.1.0

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.9.0
    • Component/s: camel-jpa
    • Labels:
    • Patch Info:
      Patch Available

      Description

      A user requested the upgrade to JPA2 in Nabble.

      OpenJPA 2.x implements JPA2: http://openjpa.apache.org/downloads.html
      The latest version is 2.1.0

      1. CAMEL-3742-patch.txt
        8 kB
        Ioannis Canellos

        Activity

        Christian Müller created issue -
        Claus Ibsen made changes -
        Field Original Value New Value
        Fix Version/s Future [ 12315692 ]
        Fix Version/s 3.0.0 [ 12315691 ]
        Fix Version/s 2.8.0 [ 12316226 ]
        Hide
        Claus Ibsen added a comment -

        Ah lets try this for camel 2.9

        Show
        Claus Ibsen added a comment - Ah lets try this for camel 2.9
        Claus Ibsen made changes -
        Fix Version/s 2.9.0 [ 12316374 ]
        Fix Version/s Future [ 12315692 ]
        Hide
        Ioannis Canellos added a comment -

        I am attaching a patch, which updates camel-jpa component to use JPA2. In detail:

        a) Upgraded OpenJPA for 1.2.2 to 2.1.1
        b) Updated feature camel-jpa to use the latest version of OpenJPA.
        c) Test class enhancement is not done with openjpa plugin, instead of ant-run-plugin.
        d) Changed lockEntity method, to return true
        if the entity object cannot be lock and is array (The newer version of openjpa won't lock object arrays, such as results of nativeQueries).

        For d we might need to find a more elegant way to do it in the future.

        Show
        Ioannis Canellos added a comment - I am attaching a patch, which updates camel-jpa component to use JPA2. In detail: a) Upgraded OpenJPA for 1.2.2 to 2.1.1 b) Updated feature camel-jpa to use the latest version of OpenJPA. c) Test class enhancement is not done with openjpa plugin, instead of ant-run-plugin. d) Changed lockEntity method, to return true if the entity object cannot be lock and is array (The newer version of openjpa won't lock object arrays, such as results of nativeQueries). For d we might need to find a more elegant way to do it in the future.
        Ioannis Canellos made changes -
        Attachment CAMEL-3742-patch.txt [ 12494138 ]
        Ioannis Canellos made changes -
        Patch Info [Patch Available]
        Ioannis Canellos made changes -
        Fix Version/s 2.8.1 [ 12317152 ]
        Fix Version/s 2.9.0 [ 12316374 ]
        Affects Version/s 2.7.1 [ 12316352 ]
        Affects Version/s 2.6.0 [ 12315690 ]
        Component/s camel-jms [ 12313928 ]
        Component/s camel-jpa [ 12313927 ]
        Claus Ibsen made changes -
        Assignee Claus Ibsen [ davsclaus ]
        Claus Ibsen made changes -
        Fix Version/s 2.9.0 [ 12316374 ]
        Fix Version/s 2.8.1 [ 12317152 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Component/s camel-jpa [ 12313927 ]
        Component/s camel-jms [ 12313928 ]
        Hide
        Claus Ibsen added a comment -

        Thanks for the patch.

        Show
        Claus Ibsen added a comment - Thanks for the patch.
        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Claus Ibsen made changes -
        Assignee Claus Ibsen [ davsclaus ] Ioannis Canellos [ iocanel ]

          People

          • Assignee:
            Ioannis Canellos
            Reporter:
            Christian Müller
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development