[#4825] Default for <tableValuedFunctions/> depends on database

This commit is contained in:
lukaseder 2016-02-02 12:02:05 +01:00
parent c902b950bb
commit d818f06281
2 changed files with 12 additions and 2 deletions

View File

@ -483,6 +483,13 @@ public class GenerationTool {
if (g.getDatabase().isTableValuedFunctions() != null)
generator.setGenerateTableValuedFunctions(g.getDatabase().isTableValuedFunctions());
// Generator properties that should in fact be strategy properties
strategy.setInstanceFields(generator.generateInstanceFields());

View File

@ -550,9 +550,12 @@
If this is deactivated, such functions are not generated as tables, but
as ordinary routines. This is particularly useful for backwards-
compatibility between jOOQ 3.8 and previous versions, when using TABLE
and VARRAY types in Oracle
and VARRAY types in Oracle.
While this flag defaults to true for most databases, it defaults to false
for Oracle.
-->
<element name="tableValuedFunctions" type="boolean" default="false" minOccurs="0" maxOccurs="1" />
<element name="tableValuedFunctions" type="boolean" default="true" minOccurs="0" maxOccurs="1" />
</all>
</complexType>