camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7206) Enable an option to pickup named parameters from headers with mybatis component
Date Wed, 12 Aug 2015 13:00:46 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693450#comment-14693450
] 

Claus Ibsen commented on CAMEL-7206:
------------------------------------

There is a inputHeader option as part of Camel 2.15 onwards.

> Enable an option to pickup named parameters from headers with mybatis component
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-7206
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7206
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-mybatis
>            Reporter: Gardella Juan Pablo
>            Assignee: Claus Ibsen
>            Priority: Minor
>              Labels: mybatis, sql
>             Fix For: 2.15.0
>
>
> For example the select query:
> 	<select id="sss" parameterType="java.util.Map"
> 		resultType="map">
> 		select fila,o.IDENTIFICACION
> 		from detalle d 
> 		join orden o on d.orden_id=o.id
> 		where informe_id=#{informeId} 
>        </select>
> The component picks the named parameters only from the body. Some cases it is useful
pick the named parameters from the header. It is better if the component has an option like
"useHeaderParameters" or something like that and I can let the message body intact.
> Related forum: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-td5747318.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message