Skip to content

[JPA] [EclipseLink] - Spring filters various packages in JPA temp class loader, prevent weaving of any models in these packages [SPR-6040] #10709

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions