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 2026/09/20 22:51:26 UTC

(cayenne) branch master updated: Docs: content cleanup

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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new 2876dd308 Docs: content cleanup
2876dd308 is described below

commit 2876dd30884570387e2baeefb42422e8b1c0a669
Author: Andrus Adamchik <an...@objectstyle.com>
AuthorDate: Sun Sep 20 18:06:20 2026 -0400

    Docs: content cleanup
---
 .../docs/asciidoc/_cayenne-guide/build-tools.adoc  |  6 +-
 .../db-import-filtering.adoc}                      |  2 +-
 .../db-import-settings.adoc}                       |  2 +-
 .../_cayenne-guide/build-tools/maven-plugin.adoc   |  6 +-
 .../src/docs/asciidoc/_cayenne-guide/db-first.adoc | 21 ------
 .../_cayenne-guide/db-first/introduction.adoc      | 75 ----------------------
 .../asciidoc/_cayenne-guide/modeler/db-import.adoc |  2 +-
 .../src/docs/asciidoc/_cayenne-guide/queries.adoc  | 15 ++---
 .../_cayenne-guide/system-requirements.adoc        |  2 +-
 .../src/docs/asciidoc/cayenne-guide.adoc           |  2 -
 10 files changed, 18 insertions(+), 115 deletions(-)

diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools.adoc
index 045be11a7..89c55825d 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools.adoc
@@ -24,4 +24,8 @@ include::build-tools/maven-plugin.adoc[]
 
 include::build-tools/gradle-plugin.adoc[]
 
-include::build-tools/ant-tasks.adoc[]
\ No newline at end of file
+include::build-tools/ant-tasks.adoc[]
+
+include::build-tools/db-import-filtering.adoc[]
+
+include::build-tools/db-import-settings.adoc[]
\ No newline at end of file
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/filtering.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/db-import-filtering.adoc
similarity index 99%
rename from docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/filtering.adoc
rename to docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/db-import-filtering.adoc
index 64f8da75e..50d9b9ec3 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/filtering.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/db-import-filtering.adoc
@@ -13,7 +13,7 @@
 // License.
 
 [[re-filtering]]
-=== Filtering
+=== DB Import Filtering
 
 The first thing you usually want to control during reverse engineering is what exactly should be loaded from database and what not. One of the most common cases is excluding system tables, as you usually don't want to map them.
 
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/other-settings.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/db-import-settings.adoc
similarity index 98%
rename from docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/other-settings.adoc
rename to docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/db-import-settings.adoc
index 1b3667aaa..9a0bb9fd1 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/other-settings.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/db-import-settings.adoc
@@ -13,7 +13,7 @@
 // License.
 
 [[re-relationships-loading-control]]
-=== Other Settings
+=== Other DB Import Settings
 
 In databases relations are defined via foreign keys and there are a lot of different politics according to the level of relationships and ways how those relationships could be modeled in database. Anyway, cdbimport is able to recognize basic patterns of relationships, such as OneToMany, OneToOne and ManyToMany.
 
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/maven-plugin.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/maven-plugin.adoc
index a1e717fa8..98444fd78 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/maven-plugin.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/build-tools/maven-plugin.adoc
@@ -146,7 +146,7 @@ Example - a typical class generation scenario, where pairs of classes are genera
 [#mavenCdbimort]
 ==== cdbimport
 
-`cdbimport` is a `cayenne-maven-plugin` goal that generates a DataMap based on an existing database schema. By default, it is bound to the generate-sources phase. This allows you to generate your DataMap prior to building your project, possibly followed by "cgen" execution to generate the classes. CDBImport plugin described in details in chapter <<DB-First Flow>>
+`cdbimport` is a `cayenne-maven-plugin` goal that generates a DataMap based on an existing database schema. By default, it is bound to the generate-sources phase. This allows you to generate your DataMap prior to building your project, possibly followed by "cgen" execution to generate the classes.
 [#cdbimportTable.table.table-bordered]
 .cdbimport parameters
 [cols="2,1,2,5"]
@@ -176,7 +176,7 @@ Example - a typical class generation scenario, where pairs of classes are genera
 .^|dbimport
 .^|XML
 .^|No
-.^|An object that contains detailed reverse engineering rules about what DB objects should be processed. For full information about this parameter see <<DB-First Flow>> chapter.
+.^|An object that contains detailed reverse engineering rules about what DB objects should be processed. For full information about this parameter see <<re-filtering,DB Import Filtering>> and <<re-relationships-loading-control,Other DB Import Settings>>.
 |===
 
 [#cdbimportDataSource.table.table-bordered]
@@ -278,7 +278,7 @@ Typical types are:
 
 .^|filters configuration
 .^|XML
-a|Detailed reverse engineering rules about what DB objects should be processed. For full information about this parameter see <<DB-First Flow>> chapter. Here is some simple example:
+a|Detailed reverse engineering rules about what DB objects should be processed. For full information about this parameter see <<re-filtering,DB Import Filtering>>. Here is some simple example:
 [source,XML]
 ----
 <dbimport>
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first.adoc
deleted file mode 100644
index 0c3edbaf5..000000000
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first.adoc
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-//
-// 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 "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.
-
-== DB-First Flow
-
-include::db-first/introduction.adoc[]
-
-include::db-first/filtering.adoc[]
-
-include::db-first/other-settings.adoc[]
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/introduction.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/introduction.adoc
deleted file mode 100644
index 73fee135d..000000000
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/db-first/introduction.adoc
+++ /dev/null
@@ -1,75 +0,0 @@
-// 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
-//
-// 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 "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.
-
-include::../var.adoc[]
-
-[[re-introduction]]
-=== Introduction
-
-==== "DB-first" Flow
-
-An ORM system consists of three parts: database, OR mapping and persistent Java classes. These parts always need to be kept in sync with each other for the application to work. "DB-first" flow is a common and practical approach to synchronization that assumes the database to be the master source of the metadata, with other two parts synchronized from the DB as the schema evolves. Cayenne provides a number of tools to automate and control it. Here is how "DB-first" flow is typically implemented:
-
-- A SQL migrations framework is used to bring a local DB to a certain version. This is outside the scope of Cayenne and is done with a third-party tool, such as Liquibase or Flyway.
-
-- OR mapping model (Cayenne XML files) are synchronized with the state of the database using `"cdbimport"` tool provided by Cayenne.
-
-- Object layer of the OR mapping model is customized to the developer liking, usually via CayenneModeler. Subsequent runs of `"cdbimport"` will not override any customizations that you make.
-
-- Java classes are generated using `"cgen"` tool provided by Cayenne.
-
-"cgen" and "cdbimport" tools can be invoked from Maven or Ant as discussed in the "Including Cayenne in a Project" chapter or run from CayenneModeler. This chapter will mostly focus on "cdbimport".
-
-Here is simple maven configuration to start with:
-
-==== Introduction to "cdbimport"
-
-Here is a simple Maven configuration of "cdbimport" (for details see <<mavenCdbimort,cayenne-maven-plugin>> documentation)
-
-[source, XML,subs="verbatim,attributes"]
-----
-<plugin>
-	<groupId>org.apache.cayenne.plugins</groupId>
-	<artifactId>cayenne-maven-plugin</artifactId>
-	<version>{version}</version>
-
-	<configuration>
-        <cayenneProject>${project.basedir}/src/main/resources/cayenne/cayenne-project.xml</cayenneProject>
-        <map>${project.basedir}/src/main/resources/datamap.map.xml</map>
-        <dataSource>
-            <url><!-- jdbc url --></url>
-            <driver><!-- jdbc driver class --></driver>
-            <username>username</username>
-            <password>password</password>
-        </dataSource>
-        <dbimport>
-            <defaultPackage>com.example.package</defaultPackage>
-            <includeTable>.*</includeTable>
-        </dbimport>
-    </configuration>
-    <dependencies>
-        <!-- jdbc driver dependency -->
-    </dependencies>
-</plugin>
-----
-In the next chapters we will discuss various filtering and other reverse-engineering options.
-
-
-
-
-
-
-
-
-
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/modeler/db-import.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/modeler/db-import.adoc
index 1287c1e2b..c4fcc6eb7 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/modeler/db-import.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/modeler/db-import.adoc
@@ -15,7 +15,7 @@
 [[re-modeler]]
 === Reverse Engineering in Cayenne Modeler
 
-Alternative approach to using <<re-introduction,build tools>> is doing reverse engineering from CayenneModeler.
+Alternative approach to using <<build_tools,build tools>> is doing reverse engineering from CayenneModeler.
 
 You can find the reverse engineering tool on the *DB Import* tab of a DataMap.
 
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/queries.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/queries.adoc
index f56e630ed..55e11aa64 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/queries.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/queries.adoc
@@ -14,22 +14,19 @@
 
 == Queries
 
-Queries are Java objects used by the application to communicate with the database.
-Cayenne knows how to translate queries into SQL statements appropriate for a particular database engine.
-Most often queries are used to find objects matching certain criteria, but there are other types of queries too.
-E.g. those allowing to run native SQL, call DB stored procedures, etc. When committing objects,
+Query objects are used to communicate with the database. Most often, to select some objects matching a criteria.
+Cayenne knows how to translate queries to SQL statements appropriate for a particular database engine.
+Other types of queries allow to run native SQL, call stored procedures, etc. When committing objects,
 Cayenne itself creates special queries to insert/update/delete rows in the database.
 
 There is a number of built-in queries in Cayenne, described later in this chapter.
-Most of the newer queries use fluent API and can be created and executed as easy-to-read one-liners.
 Users can define their own query types to abstract certain DB interactions
 that for whatever reason can not be adequately described by the built-in set.
 
 Queries can be roughly categorized as "object" and "native".
-Object queries (most notably `ObjectSelect`)
-are built with abstractions originating in the object model (the "object" side in the "object-relational" divide).
-E.g. `ObjectSelect` consists of a Java class of objects to fetch, a qualifier expression, orderings, etc. - all of this
-expressed in terms of the object model.
+Object queries (most notably `ObjectSelect`) are built with abstractions originating in the object model (the "object"
+side in the "object-relational" divide). E.g. `ObjectSelect` consists of a Java class of objects to fetch, a qualifier
+expression, orderings, etc. - all of this expressed in terms of the object model.
 
 Native queries describe a desired DB operation using SQL (`SQLSelect`, `SQLExec` query), a reference to a stored
 procedure (`ProcedureQuery`), etc. The results of native queries are lists of scalars, lists of `Object[]` or lists of
diff --git a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/system-requirements.adoc b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/system-requirements.adoc
index e2ded46dc..db9af5136 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/system-requirements.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/_cayenne-guide/system-requirements.adoc
@@ -51,6 +51,6 @@
 |Legacy
 |===
 
-- JDBC Driver: An appropriate DB-specific JDBC driver is needed to access the database. It can be included in the application or used in web container DataSource configuration.
+- JDBC Driver: An appropriate DB-specific JDBC driver is needed to access the database.
 
 - Third-party Libraries: Cayenne runtime framework has a minimal set of required and a few more optional dependencies on third-party open source packages. See <<Including Cayenne in a Project>> chapter for details.
diff --git a/docs/cayenne-guide/src/docs/asciidoc/cayenne-guide.adoc b/docs/cayenne-guide/src/docs/asciidoc/cayenne-guide.adoc
index 36c7fac24..cf5f171a8 100644
--- a/docs/cayenne-guide/src/docs/asciidoc/cayenne-guide.adoc
+++ b/docs/cayenne-guide/src/docs/asciidoc/cayenne-guide.adoc
@@ -69,8 +69,6 @@ include::_cayenne-guide/customize.adoc[]
 
 include::_cayenne-guide/agentic-coding.adoc[]
 
-include::_cayenne-guide/db-first.adoc[]
-
 include::_cayenne-guide/additional-modules.adoc[]
 
 include::_cayenne-guide/build-tools.adoc[]