OpenJPA
  1. OpenJPA
  2. OPENJPA-1432

openjpa.Compatibility property for JPA 2.0 behavior may be overwritten if this property is an argument to createEntityManagerFactory

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M3
    • Fix Version/s: 2.0.0-beta
    • Component/s: kernel
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The JPA 2.0 version is detected from persistence.xml and then set to the Compatibility object in ConfigurationImpl. However, this Compatibility object will be nullified if the following property is passed as an argument to createEntityManagerFactory:

      Map<Object,Object> map = new HashMap<Object,Object>();
      map.put("openjpa.Compatibility", "StrictIdentityValues=true");
      EntityManagerFactory emf = Persistence.createEntityManagerFactory("test", map);

      1. OPENJPA-1432.patch
        2 kB
        Fay Wang
      2. OPENJPA-1432-1.patch
        6 kB
        Fay Wang

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        83d 10h 20m 1 Donald Woods 09/Mar/10 14:47
        Resolved Resolved Closed Closed
        3h 41m 1 Donald Woods 09/Mar/10 18:29
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Donald Woods made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Donald Woods added a comment -

        open another JIRA if more work is required

        Show
        Donald Woods added a comment - open another JIRA if more work is required
        Donald Woods made changes -
        Fix Version/s 2.0.0-beta [ 12314149 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Affects Version/s 2.0.0-M3 [ 12314148 ]
        Affects Version/s 2.0.0 [ 12314019 ]
        Patch Info [Patch Available]
        Hide
        Xiaoqin Feng added a comment -

        I am on vacation from 12/20/2009  to 12/26/2009.

        If you have any question on deployment and JEE bugs, please contact Saurabh Arora or my manager Maruthi Nuthikattu.

        For emergency, contact me at 925-209-5517.

        Show
        Xiaoqin Feng added a comment - I am on vacation from 12/20/2009  to 12/26/2009. If you have any question on deployment and JEE bugs, please contact Saurabh Arora or my manager Maruthi Nuthikattu. For emergency, contact me at 925-209-5517.
        Fay Wang made changes -
        Attachment OPENJPA-1432-1.patch [ 12428463 ]
        Hide
        Fay Wang added a comment -

        This patch is another solution to this problem.

        Show
        Fay Wang added a comment - This patch is another solution to this problem.
        Fay Wang made changes -
        Field Original Value New Value
        Attachment OPENJPA-1432.patch [ 12428134 ]
        Fay Wang created issue -

          People

          • Assignee:
            Fay Wang
            Reporter:
            Fay Wang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development