Coder Social home page Coder Social logo

quarkus-mybatis's Introduction

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

๐Ÿšง

bowen

๐Ÿ’ป

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

quarkus-mybatis's People

Contributors

dependabot[bot] avatar zhfeng avatar actions-user avatar gastaldi avatar allcontributors[bot] avatar andlvovsky avatar holly-cummins avatar kbrumer avatar y-bowen avatar quarkiversebot avatar liloupar avatar avano avatar ladicek avatar maxandersen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.