This is an automated email from the ASF dual-hosted git repository.
ntimofeev pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 4e31959 dev docs and xml schemas update
4e31959 is described below
commit 4e319592e61abf6f4395edaf9dfde1369541ffdd
Author: Nikita Timofeev <[email protected]>
AuthorDate: Wed Feb 2 21:17:02 2022 +0300
dev docs and xml schemas update
---
dev/running-unit-tests.html | 27 +++++++++++++++++++++++++++
schema/10/cgen.xsd | 6 +++++-
schema/10/domain.xsd | 2 +-
schema/10/graph.xsd | 2 +-
schema/10/info.xsd | 2 +-
schema/10/modelMap.xsd | 2 +-
6 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/dev/running-unit-tests.html b/dev/running-unit-tests.html
index f42bb8a..1e7b185 100644
--- a/dev/running-unit-tests.html
+++ b/dev/running-unit-tests.html
@@ -136,6 +136,8 @@ following databases that support in-memory mode:</p>
<h2 id="running-against-database-in-docker">Running Against Database in
Docker</h2>
+<p><strong>(Before Cayenne 4.2)</strong></p>
+
<p>Another handy option to run Cayenne tests is with preconfigured docker
profiles.
The only thing you need is to install Docker.</p>
@@ -154,6 +156,31 @@ The only thing you need is to install Docker.</p>
<div class="pb-3"></div>
+<h2 id="running-against-database-with-testcontainer">Running Against Database
with TestContainer</h2>
+
+<p><strong>(Since Cayenne 4.2)</strong></p>
+
+<p>Another handy option to run Cayenne tests is with <a
href="https://www.testcontainers.org/">TestContainer</a> which use Docker.
+The only thing you need is to install Docker and run it.</p>
+
+<p>You can run tests using following <em>cayenneTestConnection</em>
properties:</p>
+
+<ul>
+<li>mysql-tc</li>
+<li>postgres-tc</li>
+<li>sqlserver-tc</li>
+<li>mariadb-tc</li>
+<li>oracle-tc</li>
+<li>db2-tc</li>
+</ul>
+
+<p>Like with in-memory databases no additional setup is required:</p>
+
+<pre><code>$ mvn verify -DcayenneTestConnection=mysql-tc
+</code></pre>
+
+<div class="pb-3"></div>
+
<h2 id="running-against-a-specific-database">Running Against a Specific
Database</h2>
<p>Final option to run tests against any supported database is with manual
configuration.</p>
diff --git a/schema/10/cgen.xsd b/schema/10/cgen.xsd
index b24afb9..31a407d 100644
--- a/schema/10/cgen.xsd
+++ b/schema/10/cgen.xsd
@@ -8,7 +8,7 @@
~ "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
+ ~ https://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
@@ -32,6 +32,10 @@
<xs:element name="mode" minOccurs="0" type="xs:string"/>
<xs:element name="template" minOccurs="0"
type="xs:string"/>
<xs:element name="superTemplate" minOccurs="0"
type="xs:string"/>
+ <xs:element name="embeddableTemplate" minOccurs="0"
type="xs:string"/>
+ <xs:element name="embeddableSuperTemplate" minOccurs="0"
type="xs:string"/>
+ <xs:element name="queryTemplate" minOccurs="0"
type="xs:string"/>
+ <xs:element name="querySuperTemplate" minOccurs="0"
type="xs:string"/>
<xs:element name="outputPattern" minOccurs="0"
type="xs:string"/>
<xs:element name="makePairs" minOccurs="0"
type="xs:boolean"/>
<xs:element name="skipRelationshipsLoading" minOccurs="0"
type="xs:boolean"/>
diff --git a/schema/10/domain.xsd b/schema/10/domain.xsd
index 40809d5..fc4c12f 100644
--- a/schema/10/domain.xsd
+++ b/schema/10/domain.xsd
@@ -8,7 +8,7 @@
~ "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
+ ~ https://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
diff --git a/schema/10/graph.xsd b/schema/10/graph.xsd
index 761a7ae..aa993ab 100644
--- a/schema/10/graph.xsd
+++ b/schema/10/graph.xsd
@@ -8,7 +8,7 @@
~ "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
+ ~ https://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
diff --git a/schema/10/info.xsd b/schema/10/info.xsd
index 480b24d..4f96d4b 100644
--- a/schema/10/info.xsd
+++ b/schema/10/info.xsd
@@ -8,7 +8,7 @@
~ "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
+ ~ https://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
diff --git a/schema/10/modelMap.xsd b/schema/10/modelMap.xsd
index 543c0a6..dae93c5 100644
--- a/schema/10/modelMap.xsd
+++ b/schema/10/modelMap.xsd
@@ -8,7 +8,7 @@
~ "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
+ ~ https://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