1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.extends_with_constructor;
17
18 import java.util.List;
19
20 public class Teacher {
21 private int id;
22 private String name;
23 private List<StudentConstructor> students;
24
25 public int getId() {
26 return id;
27 }
28
29 public void setId(int id) {
30 this.id = id;
31 }
32
33 public String getName() {
34 return name;
35 }
36
37 public void setName(String name) {
38 this.name = name;
39 }
40
41 public List<StudentConstructor> getStudents() {
42 return students;
43 }
44
45 public void setStudents(List<StudentConstructor> students) {
46 this.students = students;
47 }
48 }