Available in versions: Dev (3.21) | Latest (3.20) | 3.19 | 3.18 | 3.17 | 3.16 | 3.15 | 3.14 | 3.13 | 3.12 | 3.11
Class names, method names, identifiers
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
By default, generated class names, method names, identifiers, etc. follow Java's typical naming conventions.
Assuming a table like this:
CREATE TABLE account_transactions ( id INTEGER NOT NULL, created_at TIMESTAMP NOT NULL, created_by VARCHAR(100) NOT NULL, ... );
As a rule of thumb, the following defaults can be assumed for named objects:
- Class names follow
PascalCase
naming, i.e. theorg.jooq.Table
class name isAccountTransactions
- Records have a
Record
suffix, i.e. theorg.jooq.UpdatableRecord
class name isAccountTransactionsRecord
- Daos have a
Dao
suffix, i.e. theorg.jooq.DAO
class name isAccountTransactionsDao
- Identifiers follow
SNAKE_CASE
naming, i.e. theorg.jooq.Table
instance name isACCOUNT_TRANSACTIONS
- Path methods follow a
camleCase
naming, i.e. theorg.jooq.Path
method name isaccountTransactions()
(e.g. on a child table)
If these defaults do not convene, or if a workaround needs to be applied for a limitation of the default naming, generator strategies allow for overriding these defaults.
Table of contents
- 5.4.1.
- Custom generator strategies
- 5.4.2.
- Matcher strategies
- 5.4.2.1.
- MatcherRule
- 5.4.2.2.
- Matching schemas
- 5.4.2.3.
- Matching tables
- 5.4.2.4.
- Matching fields
- 5.4.2.5.
- Matching routines
- 5.4.2.6.
- Matching sequences
- 5.4.2.7.
- Matching enums
- 5.4.2.8.
- Matcher examples
previous : next |
Feedback
Do you have any feedback about this page? We'd love to hear it!