Use eclipselink.metadata-source to specify MetadataSource implementation TopLink uses to read metadata.
Table 5-61 describes this persistence property's values.
Table 5-61 Valid Values for metadata-source
| Value | Description |
|---|---|
|
|
Use |
|
Custom metadata source |
A custom class name which implements |
Use this property with eclipselink.metadata-source.xml.file to access an external mapping file at a fixed URL for a persistence unit.
Example 5-61 shows how to use this property in the persistence.xml file.
Example 5-61 Using metadata-source in persistence.xml
<property name="eclipselink.metadata-source" value="mypackage.MyMetadataSource"/> <property name="eclipselink.metadata-source.xml.url" value="foo://bar"/>
For more information, see:
"Using an External Metadata Source" in Solutions Guide for Oracle TopLink