public static final class XRServiceFactory.JPAMetadataSource extends java.lang.Object implements MetadataSource
INTERNAL: Implementation of MetadataSource to allow passing JPA metadata to the MetadataProcessor.
Constructor and Description |
---|
JPAMetadataSource(XRDynamicClassLoader loader,
java.io.Reader reader) |
Modifier and Type | Method and Description |
---|---|
XMLEntityMappings |
getEntityMappings(java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.ClassLoader classLoader,
SessionLog log)
PUBLIC: This method is responsible for returning the object
representation of the object-relational mapping overrides.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPropertyOverrides(java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.ClassLoader classLoader,
SessionLog log)
PUBLIC: This method is responsible for returning additional persistence
unit property overrides.
|
public JPAMetadataSource(XRDynamicClassLoader loader, java.io.Reader reader)
public java.util.Map<java.lang.String,java.lang.Object> getPropertyOverrides(java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.ClassLoader classLoader, SessionLog log)
MetadataSource
IMPORTANT: 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 MetadataSource
public XMLEntityMappings getEntityMappings(java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.ClassLoader classLoader, SessionLog log)
MetadataSource
getEntityMappings
in interface MetadataSource
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference