Skip to content

Commit fe65ae3

Browse files
committed
[ci] Formatting
1 parent 42818bf commit fe65ae3

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/main/java/org/apache/ibatis/mapping/ResultMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public boolean isLazy() {
250250
public void setLazy(boolean lazy) {
251251
this.lazy = lazy;
252252
}
253-
253+
254254
public boolean isSimple() {
255255
return this.nestedResultMapId == null && this.nestedQueryId == null && this.resultSet == null;
256256
}

src/site/zh/xdoc/sqlmap-xml.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<body>
3030
<section name="XML 映射器">
31-
<p>MyBatis 的真正强大在于它的语句映射,这是它的魔力所在。由于它的异常强大,映射器的
31+
<p>MyBatis 的真正强大在于它的语句映射,这是它的魔力所在。由于它的异常强大,映射器的
3232
XML 文件就显得相对简单。如果拿它跟具有相同功能的 JDBC 代码进行对比,你会立即发现省掉了将近
3333
95% 的代码。MyBatis 致力于减少使用成本,让用户能更专注于 SQL 代码。</p>
3434
<p>SQL 映射文件只有很少的几个顶级元素(按照应被定义的顺序列出):</p>

src/site/zh/xdoc/statement-builders.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public String updatePersonSql() {
400400
<td>
401401
<code>UPDATE(String)</code>
402402
</td>
403-
<td>开始新的 update 语句,并指定更新表的表名。后面都会跟着一个或多个 SET() 调用,通常也会有一个 WHERE() 调用。
403+
<td>开始新的 update 语句,并指定更新表的表名。后面都会跟着一个或多个 SET() 调用,通常也会有一个 WHERE() 调用。
404404
</td>
405405
</tr>
406406
<tr>

src/test/java/org/apache/ibatis/submitted/annotion_many_one_add_columnprefix/UserDao.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ public interface UserDao {
7676
" from user u",
7777
" left join user_role ur on u.id = ur.user_id",
7878
" left join role r on ur.role_id = r.id" ,
79-
" left join user f on u.friend_id = f.id",
79+
" left join user f on u.friend_id = f.id",
8080
" left join user_role fur on f.id = fur.user_id",
8181
" left join role fr on fur.role_id = fr.id" ,
82-
" where u.id = #{userId} order by r.id, fr.id"
82+
" where u.id = #{userId} order by r.id, fr.id"
8383
})
8484
@Results(id = "userWithFriendMap", value = {
8585
@Result(id = true, column = "id", property = "id"),

src/test/java/org/apache/ibatis/submitted/parent_childs/Child.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ public class Child {
2323
private Integer age;
2424

2525
public Child() {
26-
26+
2727
}
28-
28+
2929
public Child(Integer id, String name, String surName, Integer age) {
3030
this.id = id;
3131
this.name = name;
3232
this.surName = surName;
3333
this.age = age;
3434
}
35-
35+
3636
public Integer getId() {
3737
return id;
3838
}

src/test/java/org/apache/ibatis/submitted/parent_childs/Mapper.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from Parent p
4949
left outer join Child c on p.Id = c.ParentId
5050
</select>
51-
51+
5252
<resultMap id="ParentMapConstructor" type="org.apache.ibatis.submitted.parent_childs.Parent">
5353
<result column="p_Id" property="id" />
5454
<result column="p_Name" property="name" />
@@ -64,7 +64,7 @@
6464
<arg column="c_Age" javaType="int"/>
6565
</constructor>
6666
</resultMap>
67-
67+
6868
<select id="getParentsWithConstructor" resultMap="ParentMapConstructor">
6969
select
7070
p.Id as p_Id,
@@ -77,5 +77,5 @@
7777
from Parent p
7878
left outer join Child c on p.Id = c.ParentId
7979
</select>
80-
80+
8181
</mapper>

0 commit comments

Comments
 (0)