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

   In the JPA component, query parameters can be passed either through the 
endpoint URI option `parameters` or via the `CamelJpaParameters` header map.
   
   Previously, string values in the `CamelJpaParameters` header map were 
evaluated as Simple expressions by the JPA producer.
   
   This change ensures that query parameters supplied in the 
`CamelJpaParameters` header map are bound directly as literal parameter values 
without expression evaluation. The endpoint URI option `parameters` continues 
to support Simple expression evaluation for route-configured parameters.
   
   ## Changes
   
   - In `JpaProducer.configureParameters()`, separated endpoint parameters from 
header parameters so that `CamelJpaParameters` values are set directly via 
`query.setParameter(key, value)`.
   - Updated description for `JPA_PARAMETERS_HEADER` in `JpaConstants` and 
regenerated component metadata and catalog descriptors.
   - Added an entry in the Camel 4.24 upgrade guide.
   
   ## Tests
   
   Updated `JpaProducerWithQueryParametersHeaderTest` to verify that string 
values in `CamelJpaParameters` containing expressions like `${body}` are bound 
literally and match records containing that literal string instead of 
evaluating against the exchange body.
   
   All 124 tests in `camel-jpa` pass cleanly.
   
   ## Documentation
   
   Documented under the Camel 4.24 migration notes in 
`docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc`.
   
   _Claude Code on behalf of oscerd_
   
   🤖 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