File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
org/apache/ibatis/builder Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 16
16
package domain .blog ;
17
17
18
18
public class PostLiteId {
19
- private final int id ;
19
+ private int id ;
20
+
21
+ public PostLiteId () {
22
+
23
+ }
24
+
25
+ public void setId (int id ) {
26
+ this .id = id ;
27
+ }
20
28
21
29
public PostLiteId (int aId ) {
22
30
id = aId ;
Original file line number Diff line number Diff line change 37
37
38
38
<resultMap id =" mutablePostLiteMap" type =" domain.blog.PostLite" >
39
39
<result property =" blogId" column =" blog_id" />
40
- <association property =" id" column =" id" resultMap =" postLiteIdMap " />
40
+ <association property =" id" column =" id" resultMap =" mutablePostLiteIdMap " />
41
41
</resultMap >
42
42
43
- <select id =" selectPostLite" resultMap =" postLiteMap" >
44
- select id, blog_id from post where blog_id is not null
45
- </select >
43
+ <resultMap id =" mutablePostLiteIdMap" type =" domain.blog.PostLiteId" >
44
+ <id property =" id" column =" id" />
45
+ </resultMap >
46
+
47
+ <select id =" selectPostLite" resultMap =" postLiteMap" >
48
+ select id, blog_id from post where blog_id is not null
49
+ </select >
46
50
47
- <select id =" selectMutablePostLite" resultMap =" mutablePostLiteMap" >
48
- select id, blog_id from post where blog_id is not null
49
- </select >
51
+ <select id =" selectMutablePostLite" resultMap =" mutablePostLiteMap" >
52
+ select id, blog_id from post where blog_id is not null
53
+ </select >
50
54
51
55
<sql id =" byBlogId" >
52
56
<if test =" blog_id != null" >blog_id = #{blog_id}</if >
You can’t perform that action at this time.
0 commit comments