Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3146

HibernatePersistenceProviderAdaptor's putPropertyIfAbsent should check the pu.getProperties() instead of the empty HashMap

XMLWordPrintable

    • Hide

      In persistence.xml, set the property hibernate.id.new_generator_mappings to false.
      Check the EntityManagerFactory's property, hibernate.id.new_generator_mappings has been overridden by true.

      Show
      In persistence.xml, set the property hibernate.id.new_generator_mappings to false. Check the EntityManagerFactory's property, hibernate.id.new_generator_mappings has been overridden by true.

      In
      org.jboss.as.jpa.hibernate3.HibernatePersistenceProviderAdaptor
      and
      org.jboss.as.jpa.hibernate4.HibernatePersistenceProviderAdaptor

      putPropertyIfAbsent should check the pu.getProperties() instead of the empty HashMap.

      If not, AS7-2460 does not work as the override does not take in account what is present in persistence.xml

              smarlow1@redhat.com Scott Marlow
              guinotphil Philippe Guinot (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: