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 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

  1. <!DOCTYPE jdo PUBLIC
  2. "-//The Apache Software Foundation//DTD Java Data Objects Metadata 3.2//EN"
  3. "https://db.apache.org/jdo/xmlns/jdo\_3\_2.dtd">

or

  1. <!DOCTYPE jdo SYSTEM "file:/javax/jdo/jdo.dtd">

Here is an example valid for jdo files with XSD specification

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <jdo xmlns="https://db.apache.org/jdo/xmlns/jdo"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="https://db.apache.org/jdo/xmlns/jdo https://db.apache.org/jdo/xmlns/jdo\_3\_2.xsd" version="3.2">
  5. ...
  6. </jdo>

Your MetaData should match either the DTD or the XSD specification.