Skip to content

Commit

Permalink
strip trailing ws from the persistence xsd
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Feb 28, 2024
1 parent c7ee39d commit 864c56d
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions api/src/main/resources/jakarta/persistence/persistence_3_2.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
-->

<!-- persistence.xml schema -->
<xsd:schema targetNamespace="https://jakarta.ee/xml/ns/persistence"
<xsd:schema targetNamespace="https://jakarta.ee/xml/ns/persistence"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:persistence="https://jakarta.ee/xml/ns/persistence"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="3.2">

<xsd:annotation>
<xsd:documentation><![CDATA[
This is the XML Schema for the persistence configuration file.
The file must be named "META-INF/persistence.xml" in the
The file must be named "META-INF/persistence.xml" in the
persistence archive.
Persistence configuration files must indicate
Expand Down Expand Up @@ -60,7 +60,7 @@

<!-- **************************************************** -->

<xsd:element name="persistence-unit"
<xsd:element name="persistence-unit"
minOccurs="1" maxOccurs="unbounded">
<xsd:complexType>
<xsd:annotation>
Expand All @@ -74,7 +74,7 @@

<!-- **************************************************** -->

<xsd:element name="description" type="xsd:string"
<xsd:element name="description" type="xsd:string"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Expand All @@ -87,12 +87,12 @@

<!-- **************************************************** -->

<xsd:element name="provider" type="xsd:string"
<xsd:element name="provider" 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>
Expand Down Expand Up @@ -127,7 +127,7 @@

<!-- **************************************************** -->

<xsd:element name="jta-data-source" type="xsd:string"
<xsd:element name="jta-data-source" type="xsd:string"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Expand All @@ -140,7 +140,7 @@

<!-- **************************************************** -->

<xsd:element name="non-jta-data-source" type="xsd:string"
<xsd:element name="non-jta-data-source" type="xsd:string"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Expand All @@ -153,12 +153,12 @@

<!-- **************************************************** -->

<xsd:element name="mapping-file" type="xsd:string"
<xsd:element name="mapping-file" type="xsd:string"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>

File containing mapping information. Loaded as a resource
File containing mapping information. Loaded as a resource
by the persistence provider.

</xsd:documentation>
Expand All @@ -167,26 +167,26 @@

<!-- **************************************************** -->

<xsd:element name="jar-file" type="xsd:string"
<xsd:element name="jar-file" type="xsd:string"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>

Jar file that is to be scanned for managed classes.
Jar file that is to be scanned for managed classes.

</xsd:documentation>
</xsd:annotation>
</xsd:element>

<!-- **************************************************** -->

<xsd:element name="class" type="xsd:string"
<xsd:element name="class" type="xsd:string"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>

Managed class to be included in the persistence unit and
to scan for annotations. It should be annotated
to scan for annotations. It should be annotated
with either @Entity, @Embeddable or @MappedSuperclass.

</xsd:documentation>
Expand All @@ -195,14 +195,14 @@

<!-- **************************************************** -->

<xsd:element name="exclude-unlisted-classes" type="xsd:boolean"
<xsd:element name="exclude-unlisted-classes" type="xsd:boolean"
default="true" 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.
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>
Expand All @@ -211,15 +211,15 @@

<!-- **************************************************** -->

<xsd:element name="shared-cache-mode"
type="persistence:persistence-unit-caching-type"
<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
Defines whether caching is enabled for the
persistence unit if caching is supported by the
persistence provider. When set to ALL, all entities
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
Expand All @@ -233,8 +233,8 @@

<!-- **************************************************** -->

<xsd:element name="validation-mode"
type="persistence:persistence-unit-validation-mode-type"
<xsd:element name="validation-mode"
type="persistence:persistence-unit-validation-mode-type"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Expand All @@ -252,24 +252,24 @@
<xsd:annotation>
<xsd:documentation>

A list of standard and vendor-specific properties
A list of standard and vendor-specific properties
and hints.

</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="property"
<xsd:element name="property"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
A name-value pair.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string"
<xsd:attribute name="name" type="xsd:string"
use="required"/>
<xsd:attribute name="value" type="xsd:string"
<xsd:attribute name="value" type="xsd:string"
use="required"/>
</xsd:complexType>
</xsd:element>
Expand Down Expand Up @@ -307,12 +307,12 @@

<!-- **************************************************** -->

<xsd:attribute name="transaction-type"
<xsd:attribute name="transaction-type"
type="persistence:persistence-unit-transaction-type">
<xsd:annotation>
<xsd:documentation>

Type of transactions used by EntityManagers from this
Type of transactions used by EntityManagers from this
persistence unit.

</xsd:documentation>
Expand All @@ -322,7 +322,7 @@
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="version" type="persistence:versionType"
<xsd:attribute name="version" type="persistence:versionType"
fixed="3.2" use="required"/>
</xsd:complexType>
</xsd:element>
Expand Down

0 comments on commit 864c56d

Please sign in to comment.