Repository: camel
Updated Branches:
  refs/heads/master 7e7c659f0 -> 9bd940d83


camel-mybatis: add outputHeader parameter (CAMEL-8192)


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0edbf038
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0edbf038
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0edbf038

Branch: refs/heads/master
Commit: 0edbf038f37e1f7a5a0ae2a926b4ae153ef790a0
Parents: 2c4c06c
Author: Askannon <askan...@flexarc.com>
Authored: Wed Dec 31 14:19:01 2014 +0100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Fri Jan 2 08:30:44 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/mybatis/MyBatisEndpoint.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0edbf038/components/camel-mybatis/src/main/java/org/apache/camel/component/mybatis/MyBatisEndpoint.java
----------------------------------------------------------------------
diff --git 
a/components/camel-mybatis/src/main/java/org/apache/camel/component/mybatis/MyBatisEndpoint.java
 
b/components/camel-mybatis/src/main/java/org/apache/camel/component/mybatis/MyBatisEndpoint.java
index 93a2c12..c857226 100644
--- 
a/components/camel-mybatis/src/main/java/org/apache/camel/component/mybatis/MyBatisEndpoint.java
+++ 
b/components/camel-mybatis/src/main/java/org/apache/camel/component/mybatis/MyBatisEndpoint.java
@@ -149,7 +149,9 @@ public class MyBatisEndpoint extends DefaultPollingEndpoint 
{
      * By default, outputHeader == null and the query result is stored in the 
message body,
      * any existing content in the message body is discarded.
      * If outputHeader is set, the value is used as the name of the header to 
store the
-     * query result and the original message body is preserved.
+     * query result and the original message body is preserved. Setting 
outputHeader will
+     * also omit populating the default CamelMyBatisResult header since it 
would be the same
+     * as outputHeader all the time.
      */
        public void setOutputHeader(String outputHeader) {
                this.outputHeader = outputHeader;

Reply via email to