Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
There are lot of missing code snippets in camel-mybatis documentation :
- 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:
- 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:
- https://camel.apache.org/components/3.21.x/mybatis-component.html#_using_onconsume
- missing code after And the statements in the sqlmap file:{}