mirror of
https://github.com/apache/openjpa.git
synced 2025-02-22 10:07:07 +00:00
OPENJPA-1167 Update persistence and orm schemas and schemas within doc to current versions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f6413764d5
commit
c8b99a764c
@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Java Persistence API object/relational mapping file schema -->
|
||||
<xsd:schema targetNamespace="http://java.sun.com/xml/ns/persistence/orm"
|
||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
elementFormDefault="qualified" attributeFormDefault="unqualified"
|
||||
version="2.0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
@(#)orm_2_0.xsd 2.0 August 27 2008
|
||||
@(#)orm_2_0.xsd 2.0 May 27 2009
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:annotation>
|
||||
@ -523,7 +524,8 @@ version="2.0">
|
||||
<xsd:element name="map-key-enumerated"
|
||||
type="orm:enumerated" minOccurs="0" />
|
||||
<xsd:element name="map-key-attribute-override"
|
||||
type="orm:attribute-override" minOccurs="0" />
|
||||
type="orm:attribute-override" minOccurs="0"
|
||||
maxOccurs="unbounded" />
|
||||
</xsd:choice>
|
||||
<xsd:choice>
|
||||
<xsd:element name="map-key-column"
|
||||
@ -962,7 +964,8 @@ version="2.0">
|
||||
<xsd:element name="map-key-enumerated"
|
||||
type="orm:enumerated" minOccurs="0" />
|
||||
<xsd:element name="map-key-attribute-override"
|
||||
type="orm:attribute-override" minOccurs="0" />
|
||||
type="orm:attribute-override" minOccurs="0"
|
||||
maxOccurs="unbounded" />
|
||||
</xsd:choice>
|
||||
<xsd:choice>
|
||||
<xsd:element name="map-key-column"
|
||||
@ -1222,7 +1225,8 @@ version="2.0">
|
||||
<xsd:element name="map-key-enumerated"
|
||||
type="orm:enumerated" minOccurs="0" />
|
||||
<xsd:element name="map-key-attribute-override"
|
||||
type="orm:attribute-override" minOccurs="0" />
|
||||
type="orm:attribute-override" minOccurs="0"
|
||||
maxOccurs="unbounded" />
|
||||
</xsd:choice>
|
||||
<xsd:choice>
|
||||
<xsd:element name="map-key-column"
|
||||
@ -1295,7 +1299,7 @@ version="2.0">
|
||||
public @interface OrderBy {
|
||||
String value() default "";
|
||||
}
|
||||
</xsd:documentation>
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:restriction base="xsd:string" />
|
||||
</xsd:simpleType>
|
||||
@ -1310,7 +1314,6 @@ version="2.0">
|
||||
boolean insertable() default true;
|
||||
boolean updatable() default true;
|
||||
String columnDefinition() default "";
|
||||
String table() default "";
|
||||
}
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
@ -1319,7 +1322,6 @@ version="2.0">
|
||||
<xsd:attribute name="insertable" type="xsd:boolean" />
|
||||
<xsd:attribute name="updatable" type="xsd:boolean" />
|
||||
<xsd:attribute name="column-definition" type="xsd:string" />
|
||||
<xsd:attribute name="table" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
<!-- **************************************************** -->
|
||||
<xsd:complexType name="post-load">
|
||||
@ -1663,4 +1665,4 @@ version="2.0">
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
<xsd:attribute name="access" type="orm:access-type" />
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
</xsd:schema>
|
||||
|
@ -7,8 +7,8 @@
|
||||
version="2.0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
@(#)persistence_2_0.xsd 1.0 August 27 2008
|
||||
</xsd:documentation>
|
||||
@(#)persistence_2_0.xsd 1.0 May 8 2009
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
@ -131,7 +131,7 @@ version="2.0">
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<!-- **************************************************** -->
|
||||
<xsd:element name="caching"
|
||||
<xsd:element name="shared-cache-mode"
|
||||
type="persistence:persistence-unit-caching-type"
|
||||
minOccurs="0">
|
||||
<xsd:annotation>
|
||||
@ -143,7 +143,8 @@ version="2.0">
|
||||
be cached. When set to ENABLE_SELECTIVE, only entities
|
||||
specified as cacheable will be cached. When set to
|
||||
DISABLE_SELECTIVE, entities specified as not cacheable
|
||||
will not be cached.
|
||||
will not be cached. When not specified or when set to
|
||||
UNSPECIFIED, provider defaults may apply.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -231,7 +232,7 @@ version="2.0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
public enum CachingType { ALL, NONE, ENABLE_SELECTIVE,
|
||||
DISABLE_SELECTIVE};
|
||||
DISABLE_SELECTIVE, UNSPECIFIED};
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:restriction base="xsd:token">
|
||||
@ -239,6 +240,7 @@ version="2.0">
|
||||
<xsd:enumeration value="NONE" />
|
||||
<xsd:enumeration value="ENABLE_SELECTIVE" />
|
||||
<xsd:enumeration value="DISABLE_SELECTIVE" />
|
||||
<xsd:enumeration value="UNSPECIFIED" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
<!-- **************************************************** -->
|
||||
@ -254,4 +256,4 @@ version="2.0">
|
||||
<xsd:enumeration value="NONE" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
</xsd:schema>
|
||||
</xsd:schema>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -106,15 +106,15 @@ schema can be found at
|
||||
</para>
|
||||
<programlisting>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- persistence.xml schema -->
|
||||
<!-- persistence.xml schema -->
|
||||
<xsd:schema targetNamespace="http://java.sun.com/xml/ns/persistence"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:persistence="http://java.sun.com/xml/ns/persistence"
|
||||
elementFormDefault="qualified" attributeFormDefault="unqualified"
|
||||
version="2.0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
@(#)persistence_2_0.xsd 1.0 August 27 2008
|
||||
@(#)persistence_2_0.xsd 1.0 May 8 2009
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:annotation>
|
||||
@ -148,8 +148,8 @@ schema can be found at
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<!-- **************************************************** -->
|
||||
<xsd:element name="persistence-unit" minOccurs="1"
|
||||
maxOccurs="unbounded">
|
||||
<xsd:element name="persistence-unit"
|
||||
minOccurs="1" maxOccurs="unbounded">
|
||||
<xsd:complexType>
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
@ -162,8 +162,7 @@ schema can be found at
|
||||
type="xsd:string" minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Description of this persistence
|
||||
unit.
|
||||
Description of this persistence unit.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -172,8 +171,7 @@ schema can be found at
|
||||
type="xsd:string" minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Provider class that supplies
|
||||
EntityManagers for this
|
||||
Provider class that supplies EntityManagers for this
|
||||
persistence unit.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
@ -183,8 +181,7 @@ schema can be found at
|
||||
type="xsd:string" minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
The container-specific name of
|
||||
the JTA datasource to use.
|
||||
The container-specific name of the JTA datasource to use.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -193,8 +190,7 @@ schema can be found at
|
||||
type="xsd:string" minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
The container-specific name of a
|
||||
non-JTA datasource to use.
|
||||
The container-specific name of a non-JTA datasource to use.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -204,10 +200,8 @@ schema can be found at
|
||||
maxOccurs="unbounded">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
File containing mapping
|
||||
information. Loaded as a
|
||||
resource by the persistence
|
||||
provider.
|
||||
File containing mapping information. Loaded as a resource
|
||||
by the persistence provider.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -217,9 +211,8 @@ schema can be found at
|
||||
maxOccurs="unbounded">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Jar file that should be scanned
|
||||
for entities. Not applicable to
|
||||
Java SE persistence units.
|
||||
Jar file that should be scanned for entities.
|
||||
Not applicable to Java SE persistence units.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -228,10 +221,8 @@ schema can be found at
|
||||
minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Class to scan for annotations.
|
||||
It should be annotated with
|
||||
either @Entity, @Embeddable or
|
||||
@MappedSuperclass.
|
||||
Class to scan for annotations. It should be annotated
|
||||
with either @Entity, @Embeddable or @MappedSuperclass.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -241,13 +232,39 @@ schema can be found at
|
||||
minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
When set to true then only
|
||||
listed classes and jars will be
|
||||
scanned for persistent classes,
|
||||
otherwise the enclosing jar or
|
||||
directory will also be scanned.
|
||||
Not applicable to Java SE
|
||||
persistence units.
|
||||
When set to true then only listed classes and jars will
|
||||
be scanned for persistent classes, otherwise the enclosing
|
||||
jar or directory will also be scanned. Not applicable to
|
||||
Java SE persistence units.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<!-- **************************************************** -->
|
||||
<xsd:element name="shared-cache-mode"
|
||||
type="persistence:persistence-unit-caching-type"
|
||||
minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Defines whether caching is enabled for the
|
||||
persistence unit if caching is supported by the
|
||||
persistence provider. When set to ALL, all entities
|
||||
will be cached. When set to NONE, no entities will
|
||||
be cached. When set to ENABLE_SELECTIVE, only entities
|
||||
specified as cacheable will be cached. When set to
|
||||
DISABLE_SELECTIVE, entities specified as not cacheable
|
||||
will not be cached. When not specified or when set to
|
||||
UNSPECIFIED, provider defaults may apply.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<!-- **************************************************** -->
|
||||
<xsd:element name="validation-mode"
|
||||
type="persistence:persistence-unit-validation-mode-type"
|
||||
minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Specifies the validation mode to be used for the
|
||||
persistence unit.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
@ -256,15 +273,13 @@ schema can be found at
|
||||
minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
A list of vendor-specific
|
||||
properties.
|
||||
A list of vendor-specific properties.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="property"
|
||||
minOccurs="0"
|
||||
maxOccurs="unbounded">
|
||||
minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
A name-value pair.
|
||||
@ -272,12 +287,10 @@ schema can be found at
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
<xsd:attribute
|
||||
name="name"
|
||||
type="xsd:string"
|
||||
name="name" type="xsd:string"
|
||||
use="required" />
|
||||
<xsd:attribute
|
||||
name="value"
|
||||
type="xsd:string"
|
||||
name="value" type="xsd:string"
|
||||
use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
@ -290,8 +303,7 @@ schema can be found at
|
||||
use="required">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Name used in code to reference this
|
||||
persistence unit.
|
||||
Name used in code to reference this persistence unit.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
@ -300,9 +312,8 @@ schema can be found at
|
||||
type="persistence:persistence-unit-transaction-type">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Type of transactions used by
|
||||
EntityManagers from this persistence
|
||||
unit.
|
||||
Type of transactions used by EntityManagers from this
|
||||
persistence unit.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
@ -325,6 +336,35 @@ schema can be found at
|
||||
<xsd:enumeration value="RESOURCE_LOCAL" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
<!-- **************************************************** -->
|
||||
<xsd:simpleType name="persistence-unit-caching-type">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
public enum CachingType { ALL, NONE, ENABLE_SELECTIVE,
|
||||
DISABLE_SELECTIVE, UNSPECIFIED};
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:restriction base="xsd:token">
|
||||
<xsd:enumeration value="ALL" />
|
||||
<xsd:enumeration value="NONE" />
|
||||
<xsd:enumeration value="ENABLE_SELECTIVE" />
|
||||
<xsd:enumeration value="DISABLE_SELECTIVE" />
|
||||
<xsd:enumeration value="UNSPECIFIED" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
<!-- **************************************************** -->
|
||||
<xsd:simpleType name="persistence-unit-validation-mode-type">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
public enum ValidationMode { AUTO, CALLBACK, NONE};
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:restriction base="xsd:token">
|
||||
<xsd:enumeration value="AUTO" />
|
||||
<xsd:enumeration value="CALLBACK" />
|
||||
<xsd:enumeration value="NONE" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
</xsd:schema>
|
||||
</programlisting>
|
||||
<para>
|
||||
|
Loading…
x
Reference in New Issue
Block a user