[JPA] [EclipseLink] - Spring filters various packages in JPA temp class loader, prevent weaving of any models in these packages [SPR-6040] #10709
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
James Sutherland opened SPR-6040 and commented
Spring's JPA integration provides a tempClassLoader in the SpringPersistenceUnitInfo class. This loader defines an exclude filter base on the JPA providers package and a few other packages.
The issue is in writing test for EclipseLink the package org.eclipse.persistence was used for the model classes, but this filter is excluding these classes, so weaving does not work with Spring in any EclipseLink tests or examples.
The filter is not required, and EclipseLink will work without it. Either remove the package from the EclipseLinkDialect, or don't set it in SpringPersistenceUnitInfo.
Affects: 2.5.6
1 votes, 1 watchers
The text was updated successfully, but these errors were encountered: