Details
-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
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.