Skip to content

Commit 5824f84

Browse files
committed
[OPENJPA-2898] typos were fixed by Patrice DUROUX
1 parent d2a529f commit 5824f84

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ openjpa-persistence -
253253
http://xmlns.jcp.org/xml/ns/persistence/orm_2_2.xsd)
254254
orm_3_0-xsd.rsrc - Eclipse Public License v2.0 - included in the openjpa jar, taken from:
255255
https://jakarta.ee/xml/ns/persistence/orm/orm_3_0.xsd
256+
orm_3_1-xsd.rsrc - Eclipse Public License v2.0 - included in the openjpa jar, taken from:
257+
https://jakarta.ee/xml/ns/persistence/orm/orm_3_1.xsd
256258
persistence-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from:
257259
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd)
258260
persistence_2_0-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from:

openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ protected static enum localDBIdentifiers {
309309
private static final String ORM_XSD_2_1 = "orm_2_1.xsd";
310310
private static final String ORM_XSD_2_2 = "orm_2_2.xsd";
311311
private static final String ORM_XSD_3_0 = "orm_3_0.xsd";
312+
private static final String ORM_XSD_3_1 = "orm_3_1.xsd";
312313

313314
/**
314315
* Constructor; supply configuration.
@@ -596,7 +597,7 @@ protected Object getSchemaSource() {
596597
ormxsd = "orm_3_0-xsd.rsrc";
597598
useExtendedSchema = false;
598599
} else if (XMLVersionParser.VERSION_3_1.equals(_ormVersion)
599-
|| (_schemaLocation != null && _schemaLocation.indexOf(ORM_XSD_3_0) > -1)) {
600+
|| (_schemaLocation != null && _schemaLocation.indexOf(ORM_XSD_3_1) > -1)) {
600601
ormxsd = "orm_3_1-xsd.rsrc";
601602
useExtendedSchema = false;
602603
}

openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/orm_3_1.xsd renamed to openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/orm_3_1.xsd.rsrc

File renamed without changes.

0 commit comments

Comments
 (0)