Giter Club home page Giter Club logo

mybatis-3's Introduction

MyBatis SQL Mapper Framework for Java

build Coverage Status Maven central Sonatype Nexus (Snapshots) License Stack Overflow Project Stats

mybatis

The MyBatis SQL mapper framework makes it easier to use a relational database with object-oriented applications. MyBatis couples objects with stored procedures or SQL statements using an XML descriptor or annotations. Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping tools.

Essentials

Contributions

Mybatis-core is now being auto formatted. Given nature of some code logic with mybatis, it is more appropriate to force a formatting structure manually for snippets such as sql statements. To do so, add following blocks around code.

  • // @formatter:off to start the block of unformatted code
  • // @formatter:on to end the block of unformatted code

If comment sections need same behaviour such as javadocs, note that the entire block must be around entire comment as direct usage does not properly indicate that formatter treats it all as one comment block regardless.

Tests

Mybatis-3 code runs more expressive testing depending on jdk usage and platform.

By default, we set <excludedGroups>TestcontainersTests</excludedGroups> which will exclude a subset of tests with @Tag('TestcontainersTests'). Further, if pre jdk 16, we will further exclude record classes from executions further reducing tests.

When using jdk 16+, we adjust the rule to <excludedGroups>TestcontainersTests,RequireIllegalAccess</excludedGroups>.

When we run on ci platform, we further make adjustments as needed. See here for details.

As of 2/20/2023, using combined system + jdk will result in given number of tests ran. This will change as tests are added or removed over time.

without adjusting settings (ie use as is, platform does not matter)

  • any OS + jdk 11 = 1730 tests
  • any OS + jdk 17 = 1710 tests
  • any OS + jdk 19 = 1710 tests
  • any OS + jdk 20 = 1710 tests
  • any OS + jdk 21 = 1710 tests

our adjustments for GH actions where platform does matter

  • windows + jdk 11 = 1730 tests

  • windows + jdk 17 = 1710 tests

  • windows + jdk 19 = 1710 tests

  • windows + jdk 20 = 1710 tests

  • windows + jdk 21 = 1710 tests

  • linux + jdk 11 = 1765 tests

  • linux + jdk 17 = 1745 tests

  • linux + jdk 19 = 1745 tests

  • linux + jdk 20 = 1745 tests

  • linux + jdk 21 = 1745 tests

  • mac + jdk 11 = 1730 tests

  • mac + jdk 17 = 1710 tests

  • mac + jdk 19 = 1710 tests

  • mac + jdk 20 = 1710 tests

  • mac + jdk 21 = 1710 tests

mybatis-3's People

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.