This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
View | Details | Raw Unified | Return to bug 266912 | Differences between
and this patch

Collapse All | Expand All

(-)jpa/org.eclipse.persistence.jpa/src/org/eclipse/persistence/internal/jpa/metamodel/MappedSuperclassTypeImpl.java (-3 / +3 lines)
Lines 26-31 Link Here
26
import javax.persistence.metamodel.MappedSuperclassType;
26
import javax.persistence.metamodel.MappedSuperclassType;
27
27
28
import org.eclipse.persistence.descriptors.RelationalDescriptor;
28
import org.eclipse.persistence.descriptors.RelationalDescriptor;
29
import org.eclipse.persistence.internal.helper.ConversionManager;
29
30
30
/**
31
/**
31
 * <p>
32
 * <p>
Lines 83-92 Link Here
83
         * Set the javaClass on the descriptor for the current classLoader (normally done in MetadataProject.addMetamodelMappedSuperclass).
84
         * Set the javaClass on the descriptor for the current classLoader (normally done in MetadataProject.addMetamodelMappedSuperclass).
84
         * This will ensure the class is both set and is in the right classLoader - even if the class is already set.
85
         * This will ensure the class is both set and is in the right classLoader - even if the class is already set.
85
         * Perform this conversion only for our custom pseudo descriptors for MappedSuperclasses.
86
         * Perform this conversion only for our custom pseudo descriptors for MappedSuperclasses.
86
         * getActiveSession will return a possible external transaction controller session when running on an application server container.
87
         * The classLoader should be obtained from the ConversionManager so we handle EE deployments using a shared-library
87
         */ 
88
         */ 
88
        relationalDescriptor.convertClassNamesToClasses(metamodel.getSession().getActiveSession().getClass().getClassLoader());
89
        relationalDescriptor.convertClassNamesToClasses(metamodel.getSession().getDatasourcePlatform().getConversionManager().getLoader());
89
        
90
        MappedSuperclassTypeImpl<?> mappedSuperclassTypeImpl = new MappedSuperclassTypeImpl(metamodel, relationalDescriptor);
90
        MappedSuperclassTypeImpl<?> mappedSuperclassTypeImpl = new MappedSuperclassTypeImpl(metamodel, relationalDescriptor);
91
        return mappedSuperclassTypeImpl;
91
        return mappedSuperclassTypeImpl;
92
    }
92
    }

Return to bug 266912