| [[index]] |
| image:images/JDOx150.png[float="left"] |
| image:images/jdo_text.png[float="left"] |
| |
| ''''' |
| |
| :_basedir: |
| :_imagesdir: images/ |
| :notoc: |
| :titlepage: |
| :grid: cols |
| |
| == Meta-Data - ORManchor:Meta-Data_-_ORM[] |
| |
| 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 *orm* files. The |
| content of *jdo* files can be found link:jdo_dtd.html[here]. All *orm* |
| files must contain a valid DTD/DOCTYPE specification. You can use PUBLIC |
| or SYSTEM versions of these. |
| |
| Here are a couple of examples valid for *orm* files with DTD |
| specification |
| |
| .... |
| <!DOCTYPE orm PUBLIC |
| "-//Sun Microsystems, Inc.//DTD Java Data Objects Mapping Metadata 3.0//EN" |
| "http://xmlns.jcp.org/dtd/orm_3_0.dtd"> |
| |
| <!DOCTYPE orm SYSTEM "file:/javax/jdo/orm.dtd"> |
| .... |
| |
| {empty} + |
| |
| |
| Here is an example valid for *orm* files with XSD specification |
| |
| .... |
| <?xml version="1.0" encoding="UTF-8" ?> |
| <orm xmlns="http://xmlns.jcp.org/xml/ns/jdo/orm" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/jdo/orm |
| http://xmlns.jcp.org/xml/ns/jdo/orm_3_0.xsd"> |
| ... |
| </orm> |
| .... |
| |
| Your MetaData should match either the |
| http://xmlns.jcp.org/dtd/orm_3_0.dtd[DTD] or the |
| http://xmlns.jcp.org/xml/ns/jdo/orm_3_0.xsd[XSD] specification. |
| |
| ''''' |
| |