globalTableReferences vs. globalCatalogReferences

7 views
Skip to first unread message

Thorsten Schöning

unread,
Feb 7, 2020, 10:21:48 AM2/7/20
to jooq...@googlegroups.com
Hi all,

I'm playing around with the XMLDatabase-based code generator of jOOQ
and wondered about the following behaviour. Using the following
settings, three files get generated:

> <globalCatalogReferences>false</globalCatalogReferences>
> <globalSchemaReferences>false</globalSchemaReferences>
> <globalTableReferences>true</globalTableReferences>

> DefaultCatalog.java
> DefaultSchema.java
> Tables.java

When I set "globalTableReferences" to false, "Tables.java" is removed
and only the other two files stay. I would have expected none of the
files to be generated.

So is that behaviour by design or a bug?

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Lukas Eder

unread,
Feb 7, 2020, 10:36:50 AM2/7/20
to jOOQ User Group
The DefaultSchema is not the "globalSchemaReferences" you have in mind. It's your schema in the absence of a known, named schema.

"globalSchemaReferences" is a list of references to schemas from your DefaultCatalog. "globalCatalogReferences" is currently not used, but might be used if we ever generate an object that models a higher hierarchical level than the catalog.

Hope this helps,
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/473173708.20200207162143%40am-soft.de.
Reply all
Reply to author
Forward
0 new messages