Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19746

[DOCS ] Camel-mybatis component - missing code examples

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.4.0
    • None
    • Unknown

    Description

      There are lot of missing code snippets in camel-mybatis documentation :

      1. https://camel.apache.org/components/3.21.x/mybatis-component.html#_using_statementtype_for_better_control_of_mybatis
        • missing code after So for instance if we want to route to an MyBatis endpoint in which the IN body contains parameters to a SELECT statement we can do: 
        • missing code after We can do the same for some of the other operations, such as SelectList
        • missing code after And the same for UPDATE, where we can send an Account object as the IN body to MyBatis:
      2. https://camel.apache.org/components/3.21.x/mybatis-component.html#_using_insertlist_statementtype
        • missing code after To use this, you need to use the <foreach> in the mapper XML file. For example as shown below:
        • missing code after Then you can insert multiple rows, by sending a Camel message to the mybatis endpoint which uses the InsertList statement type, as shown below:
      3. https://camel.apache.org/components/3.21.x/mybatis-component.html#_using_onconsume
        • missing code after And the statements in the sqlmap file:{}

       

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            Drozdova Lucia Drozdová
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: