public static final class XRServiceFactory.JPAMetadataSource extends Object implements MetadataSource
INTERNAL: Implementation of MetadataSource to allow passing JPA metadata to the MetadataProcessor.
| Constructor and Description |
|---|
JPAMetadataSource(XRDynamicClassLoader loader,
Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
XMLEntityMappings |
getEntityMappings(Map<String,Object> properties,
ClassLoader classLoader,
SessionLog log)
PUBLIC: This method is responsible for returning the object
representation of the object-relational mapping overrides.
|
Map<String,Object> |
getPropertyOverrides(Map<String,Object> properties,
ClassLoader classLoader,
SessionLog log)
PUBLIC: This method is responsible for returning additional persistence
unit property overrides.
|
public JPAMetadataSource(XRDynamicClassLoader loader, Reader reader)
public Map<String,Object> getPropertyOverrides(Map<String,Object> properties, ClassLoader classLoader, SessionLog log)
MetadataSourceIMPORTANT: Although any property can be changed using this approach it is important that users of this feature ensure compatible configurations are supplied. As an example; overriding an application to use RESOURCE_LOCAL when it was coded to use JTA would result in changes not be written to the database.
getPropertyOverrides in interface MetadataSourcepublic XMLEntityMappings getEntityMappings(Map<String,Object> properties, ClassLoader classLoader, SessionLog log)
MetadataSourcegetEntityMappings in interface MetadataSourceEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference