You probably arrived here because the build failed with a [<kind>] <message> line and you searched for it. The rest of this page is organised so the line you saw is the entry point: top-level kinds first, then the unknown-name attempt kinds (the most common shape). Each entry leads with a sample line you can grep for.

This page covers the classification walk’s rejections. A finding that carries a code, such as GRAPHITRON_COLUMN_UNRESOLVED in the editor or MUTATION_UPSERT in a build message, is a defect the fact store reports, and every such code has an entry in the defects reference, with its fix guidance.

Reading an error line

Every emitted error takes one of three forms. Pattern-match by prefix:

[author-error] <message> [; did you mean: A, B, C]
[invalid-schema] <message>
[deferred] <message>

The did you mean: …​ suffix only appears for UnknownName variants (the eight attempt-kinds in this page); a structural [author-error] carries no candidate list. A [deferred] message is a self-contained statement that the feature is recognised but not yet generated; it carries no further suffix.

Watch-mode (mvn graphitron:dev) groups errors by file and coordinate, then prints them under one heading per element; the [<kind>] prefix is preserved through the grouping so the typed signal is still legible.

Most everyday [invalid-schema] and [author-error] errors are Structural variants whose messages are produced ad-hoc at the classifier site; their text is not enumerable here, but the kind-level entries below describe what reading them looks like.

Top-level kinds

Three prefixes. Triage by which one you saw.

author-error

Sample line. [author-error] @field 'firstName' did not match any column on table 'customer'; did you mean: FIRST_NAME, LAST_NAME, EMAIL.

Cause. Author-correctable: a name typo, a missing @table somewhere it’s needed, a directive pointed at something the jOOQ catalog or SDL registry doesn’t know about. When the lookup is against a closed set, the message includes a did you mean: …​ hint with up to five candidates ranked by Levenshtein distance.

Next step. The fix is in the schema or the consumer code (a column rename, an FK declaration, a corrected className:); no Graphitron-internal change is needed. If the message includes did you mean: …​, the relevant attempt-kind below names the resolution rule. When you can’t tell whether an error is [author-error] or [invalid-schema], the rule of thumb is "could a column rename in the SDL fix it?" Yes → [author-error]. No → [invalid-schema].

invalid-schema

Sample line. [invalid-schema] lookup fields must not return a connection.

Cause. The directive combination cannot work, period. Two sub-shapes:

  • DirectiveConflict reports two or more directives that co-occur in a combination the classifier rejects (@discriminate mixed with @reference). The error names the conflicting directives.

  • Structural reports rules that don’t reduce to a clean directive enumeration ("lookup fields must not return a connection", "result type does not match input cardinality").

Next step. Drop or replace one of the directives, or restructure the schema so the combination doesn’t arise. Renames don’t help; this is a hard "no". The directive pages in the directive reference document the admitted directive combinations per directive.

deferred

Sample line. [deferred] split-batch emitter does not yet support @condition with a join step.

Cause. Recognised but not yet generator-supported. The classifier understands what the schema asks for, but emission is stubbed until support ships.

Next step. Either drop the unsupported shape (and revisit when support ships), or contribute the missing emission to the rewrite. The message states which shape is unsupported. A deferral the fact store reports carries a code whose basis is UNSUPPORTED instead, and its entry in the defects reference says what to write instead.

Unknown name: which kind of name

When [author-error] carries an UnknownName variant (a closed-set name lookup that didn’t resolve), the message contains a did you mean: …​ suffix when there were close candidates. The variant’s attempt-kind field names what kind of thing the classifier was looking up; the LSP fix-its read this typed value to offer the right action ("rename column", "correct the class name", etc.). Find your sample below.

column

Sample line. [author-error] @field 'firstName' did not match any column on table 'customer'; did you mean: FIRST_NAME.

Cause. The @field directive’s name: argument did not match any column on the @table-bound parent. Typical typos: case (firstName vs FIRST_NAME) or a stale rename (column dropped at the database side, schema not updated).

Under an input object built into a jOOQ record, a nested input groups onto the record’s columns, and a field of it naming none is COLUMN_UNRESOLVED at that field. Where the nested input is named like a jOOQ embeddable of the record’s table, the detail says so: binding an input to an embeddable is not supported yet, so name the columns the embeddable covers instead.

Next step. Correct the name: argument, or update the database schema and regenerate the jOOQ catalog if the column was supposed to exist. @field directive reference covers the column-name resolution rules.

table

Sample line. [author-error] @table 'CUSTOMER' did not match any table in the catalog; did you mean: customer.

Cause. The @table directive’s name: argument did not match any table in the jOOQ-generated catalog. Candidates are tables under the configured <jooqPackage>.

Next step. Correct case or schema prefix. If the table is genuinely missing, regenerate the jOOQ catalog from the database first. @table directive reference covers the resolution rules.

foreign-key

Sample line. [author-error] @reference key 'customer_address_fkey' did not match any FK on table 'customer'; did you mean: customer_address_id_fkey.

Cause. The @reference directive’s key: argument did not match any FK declared on the parent table. Candidates are the FK constants on the relevant table’s Keys class.

Next step. Correct the constraint name. If the FK exists in the database but not in the catalog, regenerate jOOQ. If the FK doesn’t exist, declare it (ALTER TABLE …​ ADD FOREIGN KEY) or pin the join with table: instead of key:. @reference directive reference covers both pinning shapes.

enum-constant

Sample line. [author-error] @enum constant 'PENDING' not found on com.example.Status; did you mean: PENDING_REVIEW.

Cause. A jOOQ-typed @enum mapping referenced a Java enum constant the resolved enum class doesn’t carry.

Next step. Correct the constant name, or update the jOOQ catalog if the database enum changed.

type-name

Sample line. [author-error] @nodeId typeName 'customer' did not match any GraphQL type; did you mean: Customer.

Cause. A @nodeId directive’s typeName: argument (or a similar refType lookup) did not match any GraphQL type in the assembled SDL.

Next step. Correct case or pull in the missing schema file. @nodeId directive reference covers the typeName resolution.

nodeid-key-column

Sample line. [author-error] @node keyColumns 'customer_id' did not match a column on table 'customer'; did you mean: CUSTOMER_ID.

Cause. A @node directive’s keyColumns: or legacyKeyColumns: argument named a column the bound table doesn’t carry.

Next step. Correct case (jOOQ-generated identifiers are usually upper-snake) or update the list after a schema change. @node directive reference covers the keyColumns: and legacyKeyColumns: contracts.

dml-kind

Sample line. [author-error] @mutation typeName 'CREATE' is not a supported DML kind; did you mean: INSERT.

Cause. A @mutation directive’s typeName: argument did not match the closed set of supported DML kinds.

Next step. Use one of the supported values (INSERT, UPDATE, DELETE, UPSERT). @mutation directive reference covers the supported kinds.

Drift protection

DiagnosticsDocCoverageTest asserts every value of RejectionKind and Rejection.AttemptKind has an anchored === <kebab-case-name> heading on this page, and every such heading corresponds to an enum value. A new diagnostic added to one of these enums cannot land green without a doc paragraph; an obsolete code’s removal forces the heading’s removal.

Structural variants (AuthorError.Structural, InvalidSchema.Structural, InvalidSchema.DirectiveConflict) carry ad-hoc messages produced at the classifier site and are not enumerable; the kind-level entries above describe how to read those.

The store’s defect codes are not on this page and need no test to keep them here: the defects reference is rendered from the store at every docs build, one entry per declared code, so a code cannot land without an entry nor leave one behind, and a link to a code no longer declared fails the docs build’s link check.

See also

  • Directive reference is the SDL-side companion: every closed-set name lookup that produces an unknown-name error resolves against a directive’s argument, and the directive page covers the resolution contract.

  • Maven plugin configuration covers the validate goal that runs the validator without emitting code; useful for a CI gate that surfaces these errors without the full code-generation cost.

  • How-to: Migrating from the legacy generator covers diagnostics specific to the legacy-to-rewrite transition (the @notGenerated rejection, the retired global-ID inferences, the @condition cascade divergence).