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-1.patch
        6 kB
        Fay Wang
      2. OPENJPA-1432.patch
        2 kB
        Fay Wang

        Activity

        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.
        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.
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development