All Projects → quarkiverse → quarkus-mybatis

quarkiverse / quarkus-mybatis

Licence: Apache-2.0 License
Quarkus MyBatis Extension

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to quarkus-mybatis

quarkus-logging-manager
Quarkus extension that allows you to view the log online and change log levels using a UI
Stars: ✭ 25 (-44.44%)
Mutual labels:  quarkus-extension
quarkus-github-app
Develop your GitHub Apps in Java with Quarkus.
Stars: ✭ 28 (-37.78%)
Mutual labels:  quarkus-extension
quarkus-rabbitmq-client
Quarkus extension supporting RabbitMQ
Stars: ✭ 33 (-26.67%)
Mutual labels:  quarkus-extension
quarkus-resteasy-problem
Unified error responses for Quarkus REST APIs via Problem Details for HTTP APIs (RFC7807). Supports Quarkus 2.0+ and 1.4+
Stars: ✭ 36 (-20%)
Mutual labels:  quarkus-extension
quarkus-jberet
Quarkus Extension for Batch Applications.
Stars: ✭ 26 (-42.22%)
Mutual labels:  quarkus-extension
quarkus-google-cloud-services
Google Cloud Services Quarkus Extensions
Stars: ✭ 42 (-6.67%)
Mutual labels:  quarkus-extension
quarkus-freemarker
Quarkus Freemarker Extension
Stars: ✭ 13 (-71.11%)
Mutual labels:  quarkus-extension

Quarkus MyBatis Extension

Build License Central

All Contributors

MyBatis is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings. This extension provides the developers ease of configuration and native support. Add the following dependency in your pom.xml to get started,

<dependency>
    <groupId>io.quarkiverse.mybatis</groupId>
    <artifactId>quarkus-mybatis</artifactId>
</dependency>

And then your can use the @Mapper in your application just like

@Mapper
public interface UserMapper {

    @Select("SELECT * FROM USERS WHERE id = #{id}")
    User getUser(Integer id);

    @Insert("INSERT INTO USERS (id, name) VALUES (#{id}, #{name})")
    Integer createUser(@Param("id") Integer id, @Param("name") String name);

    @Delete("DELETE FROM USERS WHERE id = #{id}")
    Integer removeUser(Integer id);
}

For more information and quickstart, you can check the complete documentation.

Contributors

Thanks goes to these wonderful people (emoji key):


Amos Feng

💻 🚧

Chao

💻

Viktor Ilvovskyi

💻

Igor Dmitriev

💻

Ken Brumer

💻

Zohar

🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].