[#5767] Add a comment to the manual's section about MatcherRules regarding unqualified / qualified identifier matching
This commit is contained in:
parent
db502db165
commit
45e2bbe899
@ -10247,87 +10247,95 @@ public class Book implements java.io.Serializable {
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
<schemaClass> --> MatcherRule </schemaClass>
|
||||
<schemaIdentifier> --> MatcherRule </schemaIdentifier>
|
||||
<schemaImplements>com.example.MyOptionalCustomInterface</schemaImplements>
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
<schemaClass> --> MatcherRule </schemaClass>
|
||||
<schemaIdentifier> --> MatcherRule </schemaIdentifier>
|
||||
<schemaImplements>com.example.MyOptionalCustomInterface</schemaImplements>
|
||||
</schema>
|
||||
</schemas>
|
||||
|
||||
<!-- Specify 0..n table matchers in order to provide a naming strategy for objects
|
||||
created from database tables. -->
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
<tableClass> --> MatcherRule </tableClass>
|
||||
<tableIdentifier> --> MatcherRule </tableIdentifier>
|
||||
<tableImplements>com.example.MyOptionalCustomInterface</tableImplements>
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
<tableClass> --> MatcherRule </tableClass>
|
||||
<tableIdentifier> --> MatcherRule </tableIdentifier>
|
||||
<tableImplements>com.example.MyOptionalCustomInterface</tableImplements>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Record object. -->
|
||||
<recordClass> --> MatcherRule </recordClass>
|
||||
<recordImplements>com.example.MyOptionalCustomInterface</recordImplements>
|
||||
<!-- These elements influence the naming of a generated org.jooq.Record object. -->
|
||||
<recordClass> --> MatcherRule </recordClass>
|
||||
<recordImplements>com.example.MyOptionalCustomInterface</recordImplements>
|
||||
|
||||
<!-- These elements influence the naming of a generated interface, implemented by
|
||||
generated org.jooq.Record objects and by generated POJOs. -->
|
||||
<interfaceClass> --> MatcherRule </interfaceClass>
|
||||
<interfaceImplements>com.example.MyOptionalCustomInterface</interfaceImplements>
|
||||
<!-- These elements influence the naming of a generated interface, implemented by
|
||||
generated org.jooq.Record objects and by generated POJOs. -->
|
||||
<interfaceClass> --> MatcherRule </interfaceClass>
|
||||
<interfaceImplements>com.example.MyOptionalCustomInterface</interfaceImplements>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.DAO object. -->
|
||||
<daoClass> --> MatcherRule </daoClass>
|
||||
<daoImplements>com.example.MyOptionalCustomInterface</daoImplements>
|
||||
<!-- These elements influence the naming of a generated org.jooq.DAO object. -->
|
||||
<daoClass> --> MatcherRule </daoClass>
|
||||
<daoImplements>com.example.MyOptionalCustomInterface</daoImplements>
|
||||
|
||||
<!-- These elements influence the naming of a generated POJO object. -->
|
||||
<pojoClass> --> MatcherRule </pojoClass>
|
||||
<pojoExtends>com.example.MyOptionalCustomBaseClass</pojoExtends>
|
||||
<pojoImplements>com.example.MyOptionalCustomInterface</pojoImplements>
|
||||
<!-- These elements influence the naming of a generated POJO object. -->
|
||||
<pojoClass> --> MatcherRule </pojoClass>
|
||||
<pojoExtends>com.example.MyOptionalCustomBaseClass</pojoExtends>
|
||||
<pojoImplements>com.example.MyOptionalCustomInterface</pojoImplements>
|
||||
</table>
|
||||
</tables>
|
||||
|
||||
<!-- Specify 0..n field matchers in order to provide a naming strategy for objects
|
||||
created from table fields. -->
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
<fieldIdentifier> --> MatcherRule </fieldIdentifier>
|
||||
<fieldMember> --> MatcherRule </fieldMember>
|
||||
<fieldSetter> --> MatcherRule </fieldSetter>
|
||||
<fieldGetter> --> MatcherRule </fieldGetter>
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
<fieldIdentifier> --> MatcherRule </fieldIdentifier>
|
||||
<fieldMember> --> MatcherRule </fieldMember>
|
||||
<fieldSetter> --> MatcherRule </fieldSetter>
|
||||
<fieldGetter> --> MatcherRule </fieldGetter>
|
||||
</field>
|
||||
</fields>
|
||||
|
||||
<!-- Specify 0..n routine matchers in order to provide a naming strategy for objects
|
||||
created from routines. -->
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
<routineClass> --> MatcherRule </routineClass>
|
||||
<routineMethod> --> MatcherRule </routineMethod>
|
||||
<routineImplements>com.example.MyOptionalCustomInterface</routineImplements>
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
<routineClass> --> MatcherRule </routineClass>
|
||||
<routineMethod> --> MatcherRule </routineMethod>
|
||||
<routineImplements>com.example.MyOptionalCustomInterface</routineImplements>
|
||||
</routine>
|
||||
</routines>
|
||||
|
||||
<!-- Specify 0..n sequence matchers in order to provide a naming strategy for objects
|
||||
created from sequences. -->
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
<sequenceIdentifier> --> MatcherRule </sequenceIdentifier>
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
<sequenceIdentifier> --> MatcherRule </sequenceIdentifier>
|
||||
</sequence>
|
||||
</sequences>
|
||||
</matchers>
|
||||
</strategy>
|
||||
|
||||
@ -11135,21 +11135,20 @@ public class Book implements java.io.Serializable {
|
||||
In the <reference id="codegen-generatorstrategy" title="previous section"/>, we have seen how to override generator strategies programmatically. In this chapter, we'll see how such strategies can be configured in the XML or Maven <reference id="codegen-configuration" title="code generator configuration"/>. Instead of specifying a strategy name, you can also specify a <code><matchers/></code> element as such:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<strong>NOTE:</strong> All regular expressions that match object identifiers try to match identifiers first by unqualified name (<code>org.jooq.util.Definition.getName()</code>), then by qualified name (<code>org.jooq.util.Definition.getQualifiedName()</code>).
|
||||
<strong>NOTE:</strong> There had been an incompatible change between jOOQ 3.2 and jOOQ 3.3 in the configuration of these matcher strategies. See <a href="https://github.com/jOOQ/jOOQ/issues/3217">Issue #3217</a> for details.
|
||||
</p>
|
||||
</ul>
|
||||
|
||||
</html><xml><![CDATA[<!-- These properties can be added directly to the generator element: -->
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
@ -11164,7 +11163,7 @@ public class Book implements java.io.Serializable {
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
@ -11197,7 +11196,7 @@ public class Book implements java.io.Serializable {
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
@ -11213,7 +11212,7 @@ public class Book implements java.io.Serializable {
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
@ -11228,7 +11227,7 @@ public class Book implements java.io.Serializable {
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
|
||||
@ -12354,21 +12354,20 @@ public class Book implements java.io.Serializable {
|
||||
In the <reference id="codegen-generatorstrategy" title="previous section"/>, we have seen how to override generator strategies programmatically. In this chapter, we'll see how such strategies can be configured in the XML or Maven <reference id="codegen-configuration" title="code generator configuration"/>. Instead of specifying a strategy name, you can also specify a <code><matchers/></code> element as such:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<strong>NOTE:</strong> All regular expressions that match object identifiers try to match identifiers first by unqualified name (<code>org.jooq.util.Definition.getName()</code>), then by qualified name (<code>org.jooq.util.Definition.getQualifiedName()</code>).
|
||||
<strong>NOTE:</strong> There had been an incompatible change between jOOQ 3.2 and jOOQ 3.3 in the configuration of these matcher strategies. See <a href="https://github.com/jOOQ/jOOQ/issues/3217">Issue #3217</a> for details.
|
||||
</p>
|
||||
</ul>
|
||||
|
||||
</html><xml><![CDATA[<!-- These properties can be added directly to the generator element: -->
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
@ -12383,7 +12382,7 @@ public class Book implements java.io.Serializable {
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
@ -12416,7 +12415,7 @@ public class Book implements java.io.Serializable {
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
@ -12432,7 +12431,7 @@ public class Book implements java.io.Serializable {
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
@ -12447,7 +12446,7 @@ public class Book implements java.io.Serializable {
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
|
||||
@ -12854,21 +12854,20 @@ public class Book implements java.io.Serializable {
|
||||
In the <reference id="codegen-generatorstrategy" title="previous section"/>, we have seen how to override generator strategies programmatically. In this chapter, we'll see how such strategies can be configured in the XML or Maven <reference id="codegen-configuration" title="code generator configuration"/>. Instead of specifying a strategy name, you can also specify a <code><matchers/></code> element as such:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<strong>NOTE:</strong> All regular expressions that match object identifiers try to match identifiers first by unqualified name (<code>org.jooq.util.Definition.getName()</code>), then by qualified name (<code>org.jooq.util.Definition.getQualifiedName()</code>).
|
||||
<strong>NOTE:</strong> There had been an incompatible change between jOOQ 3.2 and jOOQ 3.3 in the configuration of these matcher strategies. See <a href="https://github.com/jOOQ/jOOQ/issues/3217">Issue #3217</a> for details.
|
||||
</p>
|
||||
</ul>
|
||||
|
||||
</html><xml><![CDATA[<!-- These properties can be added directly to the generator element: -->
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
@ -12883,7 +12882,7 @@ public class Book implements java.io.Serializable {
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
@ -12916,7 +12915,7 @@ public class Book implements java.io.Serializable {
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
@ -12932,7 +12931,7 @@ public class Book implements java.io.Serializable {
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
@ -12947,7 +12946,7 @@ public class Book implements java.io.Serializable {
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
|
||||
@ -13420,21 +13420,20 @@ public class Book implements java.io.Serializable {
|
||||
In the <reference id="codegen-generatorstrategy" title="previous section"/>, we have seen how to override generator strategies programmatically. In this chapter, we'll see how such strategies can be configured in the XML or Maven <reference id="codegen-configuration" title="code generator configuration"/>. Instead of specifying a strategy name, you can also specify a <code><matchers/></code> element as such:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<strong>NOTE:</strong> All regular expressions that match object identifiers try to match identifiers first by unqualified name (<code>org.jooq.util.Definition.getName()</code>), then by qualified name (<code>org.jooq.util.Definition.getQualifiedName()</code>).
|
||||
<strong>NOTE:</strong> There had been an incompatible change between jOOQ 3.2 and jOOQ 3.3 in the configuration of these matcher strategies. See <a href="https://github.com/jOOQ/jOOQ/issues/3217">Issue #3217</a> for details.
|
||||
</p>
|
||||
</ul>
|
||||
|
||||
</html><xml><![CDATA[<!-- These properties can be added directly to the generator element: -->
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
@ -13449,7 +13448,7 @@ public class Book implements java.io.Serializable {
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
@ -13482,7 +13481,7 @@ public class Book implements java.io.Serializable {
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
@ -13498,7 +13497,7 @@ public class Book implements java.io.Serializable {
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
@ -13513,7 +13512,7 @@ public class Book implements java.io.Serializable {
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
|
||||
@ -13813,21 +13813,20 @@ public class Book implements java.io.Serializable {
|
||||
In the <reference id="codegen-generatorstrategy" title="previous section"/>, we have seen how to override generator strategies programmatically. In this chapter, we'll see how such strategies can be configured in the XML or Maven <reference id="codegen-configuration" title="code generator configuration"/>. Instead of specifying a strategy name, you can also specify a <code><matchers/></code> element as such:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<strong>NOTE:</strong> All regular expressions that match object identifiers try to match identifiers first by unqualified name (<code>org.jooq.util.Definition.getName()</code>), then by qualified name (<code>org.jooq.util.Definition.getQualifiedName()</code>).
|
||||
<strong>NOTE:</strong> There had been an incompatible change between jOOQ 3.2 and jOOQ 3.3 in the configuration of these matcher strategies. See <a href="https://github.com/jOOQ/jOOQ/issues/3217">Issue #3217</a> for details.
|
||||
</p>
|
||||
</ul>
|
||||
|
||||
</html><xml><![CDATA[<!-- These properties can be added directly to the generator element: -->
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
@ -13842,7 +13841,7 @@ public class Book implements java.io.Serializable {
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
@ -13875,7 +13874,7 @@ public class Book implements java.io.Serializable {
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
@ -13891,7 +13890,7 @@ public class Book implements java.io.Serializable {
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
@ -13906,7 +13905,7 @@ public class Book implements java.io.Serializable {
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
|
||||
@ -13911,21 +13911,20 @@ public class Book implements java.io.Serializable {
|
||||
In the <reference id="codegen-generatorstrategy" title="previous section"/>, we have seen how to override generator strategies programmatically. In this chapter, we'll see how such strategies can be configured in the XML or Maven <reference id="codegen-configuration" title="code generator configuration"/>. Instead of specifying a strategy name, you can also specify a <code><matchers/></code> element as such:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<strong>NOTE:</strong> All regular expressions that match object identifiers try to match identifiers first by unqualified name (<code>org.jooq.util.Definition.getName()</code>), then by qualified name (<code>org.jooq.util.Definition.getQualifiedName()</code>).
|
||||
<strong>NOTE:</strong> There had been an incompatible change between jOOQ 3.2 and jOOQ 3.3 in the configuration of these matcher strategies. See <a href="https://github.com/jOOQ/jOOQ/issues/3217">Issue #3217</a> for details.
|
||||
</p>
|
||||
</ul>
|
||||
|
||||
</html><xml><![CDATA[<!-- These properties can be added directly to the generator element: -->
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
@ -13940,7 +13939,7 @@ public class Book implements java.io.Serializable {
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
@ -13973,7 +13972,7 @@ public class Book implements java.io.Serializable {
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
@ -13989,7 +13988,7 @@ public class Book implements java.io.Serializable {
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
@ -14004,7 +14003,7 @@ public class Book implements java.io.Serializable {
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
|
||||
@ -15401,21 +15401,20 @@ public class Book implements java.io.Serializable {
|
||||
In the <reference id="codegen-generatorstrategy" title="previous section"/>, we have seen how to override generator strategies programmatically. In this chapter, we'll see how such strategies can be configured in the XML or Maven <reference id="codegen-configuration" title="code generator configuration"/>. Instead of specifying a strategy name, you can also specify a <code><matchers/></code> element as such:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<strong>NOTE:</strong> All regular expressions that match object identifiers try to match identifiers first by unqualified name (<code>org.jooq.util.Definition.getName()</code>), then by qualified name (<code>org.jooq.util.Definition.getQualifiedName()</code>).
|
||||
<strong>NOTE:</strong> There had been an incompatible change between jOOQ 3.2 and jOOQ 3.3 in the configuration of these matcher strategies. See <a href="https://github.com/jOOQ/jOOQ/issues/3217">Issue #3217</a> for details.
|
||||
</p>
|
||||
</ul>
|
||||
|
||||
</html><xml><![CDATA[<!-- These properties can be added directly to the generator element: -->
|
||||
<generator>
|
||||
<strategy>
|
||||
<matchers>
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects
|
||||
created from schemas. -->
|
||||
<!-- Specify 0..n schema matchers in order to provide a naming strategy for objects created from schemas. -->
|
||||
<schemas>
|
||||
<schema>
|
||||
|
||||
<!-- This schema matcher applies to all unqualified or qualified schema names
|
||||
matched by this regular expression. If left empty, this matcher applies to all schemas. -->
|
||||
<!-- Match unqualified or qualified schema names. If left empty, this matcher applies to all schemas. -->
|
||||
<expression>MY_SCHEMA</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Schema object. -->
|
||||
@ -15430,7 +15429,7 @@ public class Book implements java.io.Serializable {
|
||||
<tables>
|
||||
<table>
|
||||
|
||||
<!-- The table matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified table names. If left empty, this matcher applies to all tables. -->
|
||||
<expression>MY_TABLE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Table object. -->
|
||||
@ -15463,7 +15462,7 @@ public class Book implements java.io.Serializable {
|
||||
<fields>
|
||||
<field>
|
||||
|
||||
<!-- The field matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified field names. If left empty, this matcher applies to all fields. -->
|
||||
<expression>MY_FIELD</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Field object. -->
|
||||
@ -15479,7 +15478,7 @@ public class Book implements java.io.Serializable {
|
||||
<routines>
|
||||
<routine>
|
||||
|
||||
<!-- The routine matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified routine names. If left empty, this matcher applies to all routines. -->
|
||||
<expression>MY_ROUTINE</expression>
|
||||
|
||||
<!-- These elements influence the naming of a generated org.jooq.Routine object. -->
|
||||
@ -15494,7 +15493,7 @@ public class Book implements java.io.Serializable {
|
||||
<sequences>
|
||||
<sequence>
|
||||
|
||||
<!-- The sequence matcher regular expression. -->
|
||||
<!-- Match unqualified or qualified sequence names. If left empty, this matcher applies to all sequences. -->
|
||||
<expression>MY_SEQUENCE</expression>
|
||||
|
||||
<!-- These elements influence the naming of the generated Sequences class. -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user