Use eclipselink.metadata-source
to specify MetadataSource
implementation EclipseLink uses to read metadata.
Values
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 |
Usage
Use this property with eclipselink.metadata-source.xml.file
to access an external mapping file at a fixed URL for a persistence unit.
Examples
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"/>
See Also
For more information, see:
Metadata Source Examples
http://wiki.eclipse.org/EclipseLink/Examples/JPA/MetadataSource/
"Extensible Entities"
http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Extensible_Entities
"Using an External Metadata Source" in Solutions Guide for EclispeLink