1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping;
17
18 import org.apache.ibatis.annotations.Param;
19
20 public class Task {
21 private final Integer id;
22 private final String name;
23 private User assignee;
24
25 public Task(@Param("id") Integer id, @Param("name") String name) {
26 super();
27 this.id = id;
28 this.name = name;
29 }
30
31 public Integer getId() {
32 return id;
33 }
34
35 public String getName() {
36 return name;
37 }
38
39 public User getAssignee() {
40 return assignee;
41 }
42
43 public void setAssignee(User assignee) {
44 this.assignee = assignee;
45 }
46 }