Scott Marlow created WFLY-12303:
-----------------------------------
Summary: Hibernate integration should set AvailableSettings.CLASSLOADERS
instead of AvailableSettings.APP_CLASSLOADER
Key: WFLY-12303
URL:
https://issues.jboss.org/browse/WFLY-12303
Project: WildFly
Issue Type: Task
Components: JPA / Hibernate
Reporter: Scott Marlow
Assignee: Scott Marlow
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:
{code}
properties.put(AvailableSettings.APP_CLASSLOADER, pu.getClassLoader());
{code}
that we do now.
Also see the code to be changed
[
https://github.com/wildfly/wildfly/blob/master/jpa/hibernate5_3/src/main/...],
since APP_CLASSLOADER is deprecated and will be dropped at some point, so we should start
preparing for that.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)