Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mybatis/mybatis-3
MyBatis SQL mapper framework for Java
https://github.com/mybatis/mybatis-3
java mybatis sql
Last synced: 6 days ago
JSON representation
MyBatis SQL mapper framework for Java
- Host: GitHub
- URL: https://github.com/mybatis/mybatis-3
- Owner: mybatis
- License: apache-2.0
- Created: 2013-02-14T19:03:32.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T00:53:04.000Z (13 days ago)
- Last Synced: 2025-01-06T12:07:48.883Z (13 days ago)
- Topics: java, mybatis, sql
- Language: Java
- Homepage: http://mybatis.github.io/mybatis-3/
- Size: 150 MB
- Stars: 19,900
- Watchers: 1,144
- Forks: 12,890
- Open Issues: 201
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred-test - mybatis/mybatis-3 - MyBatis SQL mapper framework for Java (Java)
- my-awesome - mybatis/mybatis-3 - 01 star:19.9k fork:12.9k MyBatis SQL mapper framework for Java (Java)
- StarryDivineSky - mybatis/mybatis-3
README
MyBatis SQL Mapper Framework for Java
=====================================[![build](https://github.com/mybatis/mybatis-3/actions/workflows/ci.yaml/badge.svg)](https://github.com/mybatis/mybatis-3/actions?query=workflow%3A%22Java+CI%22)
[![Coverage Status](https://coveralls.io/repos/mybatis/mybatis-3/badge.svg?branch=master&service=github)](https://coveralls.io/github/mybatis/mybatis-3?branch=master)
[![Maven central](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis)
[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/org.mybatis/mybatis.svg)](https://oss.sonatype.org/content/repositories/snapshots/org/mybatis/mybatis/)
[![License](https://img.shields.io/:license-apache-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Stack Overflow](https://img.shields.io/:stack%20overflow-mybatis-brightgreen.svg)](https://stackoverflow.com/questions/tagged/mybatis)
[![Project Stats](https://www.openhub.net/p/mybatis/widgets/project_thin_badge.gif)](https://www.openhub.net/p/mybatis)![mybatis](https://mybatis.org/images/mybatis-logo.png)
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
----------* [See the docs](https://mybatis.org/mybatis-3)
* [Download Latest](https://github.com/mybatis/mybatis-3/releases)
* [Download Snapshot](https://oss.sonatype.org/content/repositories/snapshots/org/mybatis/mybatis/)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 codeIf 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 ```TestcontainersTests,RequireIllegalAccess``` which will exclude a subset of tests with @Tag('TestcontainersTests') and @Tag('RequireIllegalAccess').
When we run on ci platform, we further make adjustments as needed. See [here](.github/workflows/ci.yaml) for details.
As of 12/28/2024, 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 17 = 1899 tests
- any OS + jdk 21 = 1899 tests
- any OS + jdk 23 = 1899 tests
- any OS + jdk 24 = 1899 tests
- any OS + jdk 25 = 1899 testsour adjustments for GH actions where platform does matter
- windows + jdk 17 = 1899 tests
- windows + jdk 21 = 1899 tests
- windows + jdk 23 = 1899 tests
- windows + jdk 24 = 1899 tests
- windows + jdk 25 = 1899 tests- linux + jdk 17 = 1934 tests
- linux + jdk 21 = 1934 tests
- linux + jdk 23 = 1934 tests
- linux + jdk 24 = 1934 tests
- linux + jdk 25 = 1934 tests- mac + jdk 17 = 1899 tests
- mac + jdk 21 = 1899 tests
- mac + jdk 23 = 1899 tests
- mac + jdk 24 = 1899 tests
- mac + jdk 25 = 1899 tests