davsclaus opened a new pull request, #30969:
URL: https://github.com/apache/camel/pull/30969

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   New texts for the component description and 6 options of `jooq`: the 
component option `configuration`, and `entityType`,
   `operation`, `query`, `consumeDelete` and `databaseConfiguration`, which the 
component and the endpoint share through
   `JooqConfiguration` (11 description fields in the JSON). The component has 
no headers.
   
   The old texts were vague or a few words long ("JOOQ entity class", "Type of 
operation to execute on query", "To execute
   plain SQL query"). The new texts say that `entityType` is a jOOQ 
`UpdatableRecord` class, and that the operation can
   follow it in the URI path (`jooq:com.foo.BookRecord/fetch`). They say what 
NONE, EXECUTE and FETCH do, that the `query`
   option replaces the message body for EXECUTE and FETCH and is not used by 
NONE, and that the consumer deletes only the
   rows whose exchange succeeded. The old component description said "Java 
objects"; the new one names jOOQ records and
   queries.
   
   Sources: the Camel code of camel-jooq (`JooqComponent`, `JooqEndpoint`, 
`JooqProducer`, `JooqConsumer`) and jOOQ 3.21.9.
   
   ### Found, not changed
   
   - The consumer ignores the `query` option: it always selects every row of 
the table of `entityType`. The route
     `sql-consume` in `src/test/resources/camel-context.xml` sets `query` on a 
`from` endpoint, which suggests otherwise.
   - If the class in the URI path cannot be resolved, `JooqComponent` leaves 
`entityType` unset without an error, and the
     consumer and the NONE operation fail later.
   - The comment in `parent/pom.xml` above `jooq-version` says "we need to be 
3.19.x", but the version is 3.21.9.
   
   ## Tests
   
   - There is no new test, as only description text changes.
   - A script compared the component JSON with the parent commit: only 
`description` fields changed (11 texts).
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran the formatter and built the module, then regenerated the catalog 
copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to