// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-mybatis"]
= MyBatis
:linkattrs:
:cq-artifact-id: camel-quarkus-mybatis
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Performs a query, poll, insert, update or delete in a relational database using MyBatis.
:cq-deprecated: false
:cq-jvm-since: 1.1.0
:cq-native-since: 2.8.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native since##[.badge-supported]##2.8.0##
endif::[]

Performs a query, poll, insert, update or delete in a relational database using MyBatis.

[id="extensions-mybatis-whats-inside"]
== What's inside

* xref:{cq-camel-components}::mybatis-component.adoc[MyBatis component], URI syntax: `mybatis:statement`
* xref:{cq-camel-components}::mybatis-bean-component.adoc[MyBatis Bean component], URI syntax: `mybatis-bean:beanName:methodName`

Please refer to the above links for usage and configuration details.

[id="extensions-mybatis-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-mybatis[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-mybatis</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-mybatis-additional-camel-quarkus-configuration"]
== Additional Camel Quarkus configuration

Please refer to https://quarkiverse.github.io/quarkiverse-docs/quarkus-mybatis/dev/index.html[Quarkus MyBatis] for configuration. It must enable the following options

[source, properties]
----
quarkus.mybatis.xmlconfig.enable=true
quarkus.mybatis.xmlconfig.path=SqlMapConfig.xml
----
TIP: `quarkus.mybatis.xmlconfig.path` must be the same with `configurationUri` param in the mybatis endpoint.


