metadata-source

Use eclipselink.metadata-source to specify MetadataSource implementation TopLink uses to read metadata.

Values

Table 5-61 describes this persistence property's values.

Table 5-61 Valid Values for metadata-source

Value Description

XML

Use XMLMetadataSource.

Custom metadata source

A custom class name which implements MetadataSource.


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: