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

        No work has yet been logged on this 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