mirror of https://github.com/apache/openjpa.git
OPENJPA-2368 extentable xsd updates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1468233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e996c9918
commit
e8a2932d4c
|
@ -65,7 +65,7 @@ public abstract class XMLMetaDataParser extends DefaultHandler
|
||||||
(XMLMetaDataParser.class);
|
(XMLMetaDataParser.class);
|
||||||
private static boolean _schemaBug;
|
private static boolean _schemaBug;
|
||||||
|
|
||||||
private static final String OPENJPA_NAMESPACE = "http://www.apache.org/openjpa/ns/orm";
|
private static final String OPENJPA_NAMESPACE = "http://openjpa.apache.org/ns/orm";
|
||||||
protected int _extendedNamespace = 0;
|
protected int _extendedNamespace = 0;
|
||||||
protected int _openjpaNamespace = 0;
|
protected int _openjpaNamespace = 0;
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable"
|
<entity-mappings xmlns="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:openjpa="http://www.apache.org/openjpa/ns/orm"
|
xmlns:openjpa="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable"
|
<entity-mappings xmlns="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:openjpa="http://www.apache.org/openjpa/ns/orm"
|
xmlns:openjpa="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable"
|
<entity-mappings xmlns="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:openjpa="http://www.apache.org/openjpa/ns/orm"
|
xmlns:openjpa="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable"
|
<entity-mappings xmlns="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:openjpa="http://www.apache.org/openjpa/ns/orm"
|
xmlns:openjpa="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable"
|
<entity-mappings xmlns="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:openjpa="http://www.apache.org/openjpa/ns/orm"
|
xmlns:openjpa="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||||
targetNamespace="http://www.apache.org/openjpa/ns/orm/extendable"
|
targetNamespace="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:extendable-orm="http://www.apache.org/openjpa/ns/orm/extendable"
|
xmlns:extendable-orm="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
elementFormDefault="qualified"
|
elementFormDefault="qualified"
|
||||||
attributeFormDefault="unqualified"
|
attributeFormDefault="unqualified"
|
||||||
|
|
|
@ -18,15 +18,15 @@
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||||
targetNamespace="http://www.apache.org/openjpa/ns/orm"
|
targetNamespace="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:openjpa-orm="http://www.apache.org/openjpa/ns/orm"
|
xmlns:openjpa-orm="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:extendable-orm="http://www.apache.org/openjpa/ns/orm/extendable"
|
xmlns:extendable-orm="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
elementFormDefault="qualified"
|
elementFormDefault="qualified"
|
||||||
attributeFormDefault="unqualified"
|
attributeFormDefault="unqualified"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
|
|
||||||
<xsd:import namespace="http://www.apache.org/openjpa/ns/orm/extendable"/>
|
<xsd:import namespace="http://openjpa.apache.org/ns/orm/extendable"/>
|
||||||
<xsd:import namespace="http://java.sun.com/xml/ns/persistence/orm"/>
|
<xsd:import namespace="http://java.sun.com/xml/ns/persistence/orm"/>
|
||||||
|
|
||||||
<!-- **************************************************** -->
|
<!-- **************************************************** -->
|
||||||
|
|
|
@ -987,7 +987,7 @@ public class Magazine
|
||||||
<para>
|
<para>
|
||||||
OpenJPA has extended the JPA 2.0 schema to include elements and attributes corresponding
|
OpenJPA has extended the JPA 2.0 schema to include elements and attributes corresponding
|
||||||
to OpenJPA extended metadata and mapping annotations. The schema are contained in 2
|
to OpenJPA extended metadata and mapping annotations. The schema are contained in 2
|
||||||
files: <ulink url="http://openjpa.apache.org/builds/latest/docs/schema/extendable-orm.xsd">
|
files: <ulink url="http://openjpa.apache.org/builds/latest/docs/schema/extendable/extendable-orm.xsd">
|
||||||
extendable-orm.xsd</ulink> and
|
extendable-orm.xsd</ulink> and
|
||||||
<ulink url="http://openjpa.apache.org/builds/latest/docs/schema/openjpa-orm.xsd">openjpa-orm.xsd</ulink>.
|
<ulink url="http://openjpa.apache.org/builds/latest/docs/schema/openjpa-orm.xsd">openjpa-orm.xsd</ulink>.
|
||||||
The extendable-orm.xsd file provides copies of some of the JPA 2.0 schema elements with additional schema to make it
|
The extendable-orm.xsd file provides copies of some of the JPA 2.0 schema elements with additional schema to make it
|
||||||
|
@ -1007,8 +1007,8 @@ schemas as well as for the schema for JPA 2.0, as shown in the following example
|
||||||
OpenJPA Schema Extensions
|
OpenJPA Schema Extensions
|
||||||
</title>
|
</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable"
|
<entity-mappings xmlns="http://openjpa.apache.org/ns/orm/extendable"
|
||||||
xmlns:openjpa="http://www.apache.org/openjpa/ns/orm"
|
xmlns:openjpa="http://openjpa.apache.org/ns/orm"
|
||||||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
Loading…
Reference in New Issue