Sun Java Solaris Communities My SDN Account Join SDN
 
Article

Java Persistence API: XML Schemas

 

Table of contents

  1. Introduction
  2. Using Java Persistence Schemas
  3. Java Persistence Schema Resources
1. Introduction
 

This document lists the document formats that will be used by the Java Persistence API XML descriptors. The Java Persistence API requires that its XML descriptors be validated with respect to the XML Schema listed by this document.

2. Using Java Persistence Schemas
 

The Java Persistence API Schemas share the namespace, http://java.sun.com/xml/ns/persistence/. Each schema document contains a version attribute that contains the version of the Java Persistence specification. This pertains to the specific version of the specification as well as the schema document itself. The value of this version attribute is currently "1.0".

Each Java Persistence XML Schema document's file name contains the specific version of the Java Persistence specification to which it relates. This is introduced for convenience to locate specific versions of the schema documents. However, XML descriptor instances are not required to refer to a specific file. Instead, an instance must specify the version of the specification by using the version attribute. This allows XML descriptor processors to use the version information to choose the appropriate version of the schema document(s) to process XML descriptor instances.

3. Java Persistence 1.0 Schema Resources
 

This table contains the XML Schema components for Java Persistence 1.0.

Date Published File Name Description Status
  orm_1_0.xsd Object/relational mapping file schema Final Release
  persistence_1_0.xsd Persistence configuration schema Final Release

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.