-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OPENJPA-2928] Add xsd schemas for offline processing
* XML schemas for Jakarta Persistence 3.0.0, orm.xml and persistence.xml, are available offline * Test added
- Loading branch information
Showing
14 changed files
with
2,781 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...ersistence-jdbc/src/test/resources/org/apache/openjpa/persistence/xml/offline_orm_3_0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
<entity-mappings xmlns="https://jakarta.ee/xml/ns/persistence/orm" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence/orm http://localhost:11666/orm_3_0.xsd" | ||
version="3.0"> | ||
<persistence-unit-metadata> | ||
<persistence-unit-defaults> | ||
<description> This is an orm 3.0 element</description> | ||
</persistence-unit-defaults> | ||
</persistence-unit-metadata> | ||
<package> | ||
org.apache.openjpa.persistence.xml | ||
</package> | ||
<entity name="SimpleXml" class="SimpleXmlEntity"> | ||
<named-query name="SimpleXml.findAll"> | ||
<query>select o from SimpleXml o</query> | ||
</named-query> | ||
<named-query name="SimpleXmlEntity.findAll"> | ||
<query>select o from SimpleXmlEntity o</query> | ||
</named-query> | ||
<attributes> | ||
<id name="id"> | ||
<generated-value generator="uuid-hex"/> | ||
</id> | ||
<basic name="stringField"/> | ||
<version name="version"/> | ||
</attributes> | ||
</entity> | ||
</entity-mappings> |
30 changes: 30 additions & 0 deletions
30
...src/test/resources/org/apache/openjpa/persistence/xml/offline_persistence-3_0-orm-3_0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
<persistence | ||
xmlns="https://jakarta.ee/xml/ns/persistence" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence http://localhost:11666/persistence_3_0.xsd" | ||
version="3.0"> | ||
<persistence-unit name="XSDTest" transaction-type="RESOURCE_LOCAL"> | ||
<description>PU for schema validation testing</description> | ||
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> | ||
<mapping-file>org/apache/openjpa/persistence/xml/offline_orm_3_0.xml</mapping-file> | ||
</persistence-unit> | ||
</persistence> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.