Module org.eclipse.persistence.jpa
Class MetadataSource
java.lang.Object
org.eclipse.persistence.jpa.metadata.MetadataSourceAdapter
org.eclipse.persistence.jpa.metadata.XMLMetadataSource
org.eclipse.persistence.internal.jpa.config.persistenceunit.MetadataSource
- All Implemented Interfaces:
MetadataSource
JPA scripting API implementation.
- Since:
- EclipseLink 2.5.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEntityMappings
(Map<String, Object> properties, ClassLoader classLoader, SessionLog log) This method is responsible for returning the object representation of the MetadataSource.Methods inherited from class org.eclipse.persistence.jpa.metadata.XMLMetadataSource
getConfigPropertyLogDebug, getEntityMappingsReader, getFileURL, getPropertyOverrides, getRepositoryName
-
Constructor Details
-
MetadataSource
-
-
Method Details
-
getEntityMappings
public XMLEntityMappings getEntityMappings(Map<String, Object> properties, ClassLoader classLoader, SessionLog log) Description copied from class:XMLMetadataSource
This method is responsible for returning the object representation of the MetadataSource. This implementation makes a call to getEntityMappingsReader to get a Reader which is passed to an XMLUnmarshaller, and closes the reader in a finally block.- Specified by:
getEntityMappings
in interfaceMetadataSource
- Overrides:
getEntityMappings
in classXMLMetadataSource
- Returns:
- XMLEntityMappings - object representation of the EclipseLink-orm.xml for this repository
-