Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M3
    • 2.0.0-beta
    • kernel
    • None
    • 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);

      Attachments

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

        Activity

          People

            faywang Fay Wang
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: