You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2019/11/06 09:31:30 UTC

[cayenne] branch STABLE-4.1 updated: minor edits, flat structure of some chapters

This is an automated email from the ASF dual-hosted git repository.

aadamchik pushed a commit to branch STABLE-4.1
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/STABLE-4.1 by this push:
     new 2eb3c71  minor edits, flat structure of some chapters
2eb3c71 is described below

commit 2eb3c71f6842f107301895a27890afc1a4f2a532
Author: Andrus Adamchik <an...@objectstyle.com>
AuthorDate: Wed Nov 6 12:22:50 2019 +0300

    minor edits, flat structure of some chapters
---
 .../asciidoc/_cayenne-guide/part2/including.adoc   |  4 ++--
 .../src/docs/asciidoc/_cayenne-guide/part3.adoc    |  2 ++
 .../src/docs/asciidoc/_cayenne-guide/part5.adoc    |  2 +-
 .../_cayenne-guide/part5/apacheVelocity.adoc       | 27 +++++++++++-----------
 .../_cayenne-guide/part5/cacheInvalidation.adoc    | 12 ++++------
 .../asciidoc/_cayenne-guide/part5/cayenneOsgi.adoc | 11 ++++-----
 .../_cayenne-guide/part5/cayenneRopServer.adoc     |  9 +++-----
 .../asciidoc/_cayenne-guide/part5/cayenneWeb.adoc  | 13 ++++-------
 .../asciidoc/_cayenne-guide/part5/commitLog.adoc   |  8 ++-----
 .../docs/asciidoc/_cayenne-guide/part5/crypto.adoc |  8 ++-----
 .../docs/asciidoc/_cayenne-guide/part5/jCache.adoc | 10 +++-----
 .../_cayenne-guide/part5/projectCompatibility.adoc | 12 ++++------
 12 files changed, 47 insertions(+), 71 deletions(-)

diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/including.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/including.adoc
index 0f603d9..d4f255a 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/including.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/including.adoc
@@ -30,9 +30,9 @@ To add Cayenne to your Maven project, include `cayenne-server` in your POM:
 </dependency>
 ----
 
-==== Gradle Projects
+==== Gradle
 
-To add Cayenne to your Maven project, include `cayenne-server` module:
+To add Cayenne to your Gradle project, include `cayenne-server` module:
 
 [source, Groovy,subs="verbatim,attributes"]
 ----
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part3.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part3.adoc
index 0bf6e6e..98544f0 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part3.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part3.adoc
@@ -12,9 +12,11 @@
 // the specific language governing permissions and limitations under the
 // License.
 
+[#rop]
 == Cayenne Framework - Remote Object Persistence
 
 include::part3/rop.adoc[]
+
 include::part3/ropDeployment.adoc[]
 
 // TODO: add content to these files:
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5.adoc
index ef30145..9decd7b 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5.adoc
@@ -12,7 +12,7 @@
 // the specific language governing permissions and limitations under the
 // License.
 
-== Cayenne Additional Modules
+== Additional Modules
 
 include::part5/cacheInvalidation.adoc[]
 
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/apacheVelocity.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/apacheVelocity.adoc
index dbd4abc..0cea61c 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/apacheVelocity.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/apacheVelocity.adoc
@@ -14,16 +14,12 @@
 
 include::../var.adoc[]
 
-[[ext-velocity]]
-=== Apache Velocity extension
+[#ext-velocity]
+=== Apache Velocity Extension
 
-==== Description
+Enables usage of full featured Apache Velocity templates in `SQLSelect` / `SQLExec` queries.
 
-This module enables usage of full featured Apache Velocity templates in `org.apache.cayenne.query.SQLTemplate` queries.
-
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -34,7 +30,7 @@ This module enables usage of full featured Apache Velocity templates in `org.apa
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy, subs="verbatim,attributes"]
 ----
@@ -43,11 +39,16 @@ compile 'org.apache.cayenne:cayenne-velocity:{version}'
 
 ==== Usage
 
-This module doesn't require any additional setup.
-
-In addition of directives mentioned in <<directives,this chapter>>, this module enables `#chain` and `#chunk` directives.
+This module doesn't require any additional setup. In addition of directives mentioned in <<directives,this chapter>>,
+this module also adds `#chain` and `#chunk` directives.
 
-`#chain` and `#chunk` directives are used for conditional inclusion of SQL code. They are used together with `#chain` wrapping multiple `#chunks`. A chunk evaluates its parameter expression and if it is NULL suppresses rendering of the enclosed SQL block. A chain renders its prefix and its chunks joined by the operator. If all the chunks are suppressed, the chain itself is suppressed. This allows to work with otherwise hard to script SQL semantics. E.g. a WHERE clause can contain multipl [...]
+`#chain` and `#chunk` directives are used for conditional inclusion of SQL code. They are used together with `#chain`
+wrapping multiple `#chunks`. A chunk evaluates its parameter expression and if it is NULL suppresses rendering of the
+enclosed SQL block. A chain renders its prefix and its chunks joined by the operator. If all the chunks are suppressed,
+the chain itself is suppressed. This allows to work with otherwise hard to script SQL semantics. E.g. a WHERE clause
+can contain multiple conditions joined with AND or OR. Application code would like to exclude a condition if its
+right-hand parameter is not present (similar to Expression pruning discussed above). If all conditions are excluded,
+the entire WHERE clause should be excluded. chain/chunk allows to do that.
 
 Semantics:
 
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cacheInvalidation.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cacheInvalidation.adoc
index 3dfd4b4..88930c8 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cacheInvalidation.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cacheInvalidation.adoc
@@ -14,16 +14,12 @@
 
 include::../var.adoc[]
 
-[[ext-cache-invalidation]]
-=== Cache invalidation extension
-
-==== Description
+[#ext-cache-invalidation]
+=== Cache Invalidation Extension
 
 Cache invalidation module is an extension that allows to define cache invalidation policy programmatically.
 
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -34,7 +30,7 @@ Cache invalidation module is an extension that allows to define cache invalidati
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy,subs="verbatim,attributes"]
 ----
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneOsgi.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneOsgi.adoc
index 0d0d74d..ec89f57 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneOsgi.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneOsgi.adoc
@@ -14,15 +14,12 @@
 
 include::../var.adoc[]
 
+[#ext-osgi]
 === Cayenne OSGI extension
 
-==== Description
+Helps to bootstrap Cayenne in OSGi environment.
 
-This module helps to bootstrap Cayenne in OSGi environment.
-
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -33,7 +30,7 @@ This module helps to bootstrap Cayenne in OSGi environment.
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy,subs="verbatim,attributes"]
 ----
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneRopServer.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneRopServer.adoc
index cbc67ae..69ff34b 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneRopServer.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneRopServer.adoc
@@ -14,13 +14,10 @@
 
 include::../var.adoc[]
 
-=== Cayenne Rop Server extension
+[#ext-rop]
+=== Cayenne ROP Server Extension
 
-==== Description
-
-This module creates services for the server side of an xref:introduction-to-rop[ROP] application.
-
-==== Including in a project
+Creates services for the server side of an <<rop,ROP>> application.
 
 ===== Maven
 
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneWeb.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneWeb.adoc
index d2847a4..02f67fb 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneWeb.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/cayenneWeb.adoc
@@ -14,15 +14,12 @@
 
 include::../var.adoc[]
 
-=== Cayenne Web extension
+[#ext-web]
+=== Cayenne Web Extension
 
-==== Description
+Provides basic utilities to bootstrap Cayenne service inside web application.
 
-This module provides basic utilities to bootstrap Cayenne service inside web application.
-
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -33,7 +30,7 @@ This module provides basic utilities to bootstrap Cayenne service inside web app
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy,subs="verbatim,attributes"]
 ----
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
index b7ae82d..c180007 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
@@ -17,13 +17,9 @@ include::../var.adoc[]
 [[ext-commit-log]]
 === Commit log extension
 
-==== Description
-
 The goal of this module is to capture commit changes and present them to interested parties in an easy-to-process format.
 
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -34,7 +30,7 @@ The goal of this module is to capture commit changes and present them to interes
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy,subs="verbatim,attributes"]
 ----
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/crypto.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/crypto.adoc
index e5a97bb..9256f12 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/crypto.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/crypto.adoc
@@ -17,13 +17,9 @@ include::../var.adoc[]
 [[ext-crypto]]
 === Crypto extension
 
-==== Description
-
 Crypto module allows encrypt and decrypt values stored in DB transparently to your Java app.
 
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -34,7 +30,7 @@ Crypto module allows encrypt and decrypt values stored in DB transparently to yo
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy,subs="verbatim,attributes"]
 ----
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/jCache.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/jCache.adoc
index 90a838d..d1882fd 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/jCache.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/jCache.adoc
@@ -17,13 +17,9 @@ include::../var.adoc[]
 [[ext-jcache]]
 === JCache integration
 
-==== Description
+Allows to integrate any JCache (JSR 107) compatible caching provider with Cayenne.
 
-This module allows to integrate any JCache (JSR 107) compatible caching provider with Cayenne.
-
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -34,7 +30,7 @@ This module allows to integrate any JCache (JSR 107) compatible caching provider
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy,subs="verbatim,attributes"]
 ----
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/projectCompatibility.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/projectCompatibility.adoc
index f6c933d..87942e1 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/projectCompatibility.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/projectCompatibility.adoc
@@ -17,15 +17,13 @@ include::../var.adoc[]
 [[ext-project-compatibility]]
 === Project compatibility extension
 
-==== Description
-
-Since version 4.1 Cayenne doesn't allow to load project XML files from previous versions as this can lead to unexpected errors in runtime. This module allows to use project files from older versions performing their upgrade on the fly (without modifying files). This can be useful when using Cayenne models from third-party libraries in your app.
+Since version 4.1 Cayenne doesn't allow to load project XML files from previous versions as this can lead to unexpected
+errors in runtime. This module allows to use project files from older versions performing their upgrade on the fly
+(without modifying files). This can be useful when using Cayenne models from third-party libraries in your app.
 
 NOTE: You should prefer explicit project upgrade via Cayenne Modeler.
 
-==== Including in a project
-
-===== Maven
+==== Maven
 
 [source, XML,subs="verbatim,attributes"]
 ----
@@ -36,7 +34,7 @@ NOTE: You should prefer explicit project upgrade via Cayenne Modeler.
 </dependency>
 ----
 
-===== Gradle
+==== Gradle
 
 [source, Groovy,subs="verbatim,attributes"]
 ----