[jboss-jira] [JBoss JIRA] (WFLY-12303) Hibernate integration should set AvailableSettings.CLASSLOADERS instead of AvailableSettings.APP_CLASSLOADER
Scott Marlow (Jira)
issues at jboss.org
Thu Jul 18 11:34:02 EDT 2019
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/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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list