[#5559] Add missing documentation for the <catalogVersionProvider/> configuration element

This commit is contained in:
lukaseder 2016-09-21 12:37:54 +02:00
parent 112d7b8014
commit 91a2f0eaf2
2 changed files with 6 additions and 2 deletions

View File

@ -13467,13 +13467,15 @@ result.forEach((Object[] entities) -> {
There are three operation modes for this element:
- The value is a class that can be found on the classpath and that implements
org.jooq.util.CatalogVersionProvider or, respectively,
org.jooq.util.SchemaVersionProvider. Such classes must provide a default constructor
- The value is a SELECT statement that returns one record with one column. The
SELECT statement may contain a named variable called :schema_name
SELECT statement may contain a named variable called :catalog_name or :schema_name respectively
- The value is a constant, such as a Maven property
Schema versions will be generated into the javax.annotation.Generated annotation on
generated artefacts. -->
<catalogVersionProvider>SELECT :catalog_name || '_' || MAX("version") FROM "schema_version"</catalogVersionProvider>
<schemaVersionProvider>SELECT :schema_name || '_' || MAX("version") FROM "schema_version"</schemaVersionProvider>
<!-- A configuration element to configure reusable custom data types -->

View File

@ -13489,13 +13489,15 @@ result.forEach((Object[] entities) -> {
There are three operation modes for this element:
- The value is a class that can be found on the classpath and that implements
org.jooq.util.CatalogVersionProvider or, respectively,
org.jooq.util.SchemaVersionProvider. Such classes must provide a default constructor
- The value is a SELECT statement that returns one record with one column. The
SELECT statement may contain a named variable called :schema_name
SELECT statement may contain a named variable called :catalog_name or :schema_name respectively
- The value is a constant, such as a Maven property
Schema versions will be generated into the javax.annotation.Generated annotation on
generated artefacts. -->
<catalogVersionProvider>SELECT :catalog_name || '_' || MAX("version") FROM "schema_version"</catalogVersionProvider>
<schemaVersionProvider>SELECT :schema_name || '_' || MAX("version") FROM "schema_version"</schemaVersionProvider>
<!-- A configuration element to configure reusable custom data types -->