克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

MyBatis SQL Mapper Framework for Java

Build Status 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 a XML descriptor or annotations. Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping tools.

Essentials

Mybatis XML 和 Mapper 绑定机制在哪?

org.apache.ibatis.builder.xml.XMLMapperBuilder.bindMapperForNamespace namespace + id(name) 所以 Mapper 和 XML 不是一一对应的关系, 而是 XML 的 namespace 必须要绑定到接口上 一个接口可以有多个XML, 但是最后这些XML 提取出来的 namespace + id 不可以重复!

XML 有几个标签 ?

cache-ref | cache | resultMap* | parameterMap* | sql* | insert* | update* | delete* | select*

有哪几种执行类型 ?

INSERT | UPDATE | DELETE | SELECT | FLUSH

返回值有几种类型

Object One | List | Map | Cursor(不知道啥玩意) | 自定义的 ResultHandler

Copyright ${license.git.copyrightYears} the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

mybatis 展开 收起
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化