blob: 1078cc90e612b16cd8fcbbb1e29366ea7a3dec72 [file] [log] [blame]
:_basedir:
:_imagesdir: images/
:notoc:
:notitle:
:grid: cols
:metadata:
[[index]]
== Meta-Data - JDOanchor:Meta-Data_-_JDO[]
JDO defines XML MetaData in *jdo* files as well as *orm* files. As
always with XML, the metadata must match the defined DTD/XSD for that
file type. This section describes the content of the *jdo* files. The
content of *orm* files can be found xref:orm_dtd.adoc[here]. All *jdo*
files must contain a valid DTD/DOCTYPE specification. You can use PUBLIC
or SYSTEM versions of these.
Here are a few examples valid for *jdo* files with DTD specifications
....
<!DOCTYPE jdo PUBLIC
"-//The Apache Software Foundation//DTD Java Data Objects Metadata 3.2//EN"
"https://db.apache.org/jdo/xmlns/jdo_3_2.dtd">
....
or
....
<!DOCTYPE jdo SYSTEM "file:/javax/jdo/jdo.dtd">
....
{empty} +
Here is an example valid for *jdo* files with XSD specification
....
<?xml version="1.0" encoding="UTF-8" ?>
<jdo xmlns="https://db.apache.org/jdo/xmlns/jdo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://db.apache.org/jdo/xmlns/jdo https://db.apache.org/jdo/xmlns/jdo_3_2.xsd" version="3.2">
...
</jdo>
....
Your MetaData should match either the
http://db.apache.org/jdo/xmlns/jdo_3_2.dtd[DTD] or the
http://db.apache.org/jdo/xmlns/jdo_3_2.xsd[XSD] specification.