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.
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.
Mybatis-3 code runs more expressive testing depending on jdk usage and platform.
By default, we set <excludedGroups>TestcontainersTests,RequireIllegalAccess</excludedGroups>
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 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)
our 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。