Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12303

Hibernate integration should set AvailableSettings.CLASSLOADERS instead of deprecated AvailableSettings.APP_CLASSLOADER

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • None
    • JPA / Hibernate
    • None

    Description

      Since Hibernate ORM 5.0, AvailableSettings.CLASSLOADERS has been available to to define a

      {@link java.util.Collection}

      of the

      {@link ClassLoader}

      instances Hibernate should use for class-loading and resource-lookups.

      I think that we could switch to using that instead of the:

      properties.put(AvailableSettings.APP_CLASSLOADER, pu.getClassLoader());
      

      that we do now.

      Also see the code to be changed https://github.com/wildfly/wildfly/blob/master/jpa/hibernate5_3/src/main/java/org/jboss/as/jpa/hibernate5/HibernatePersistenceProviderAdaptor.java#L76, since APP_CLASSLOADER is deprecated and will be dropped at some point, so we should start preparing for that.

      Attachments

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            smarlow1@redhat.com Scott Marlow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: