1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.unmatched_prop_type;
17
18 import java.time.LocalDate;
19
20 public class User {
21 private final Integer id;
22 private final String name;
23 private Birthday dob;
24
25 public User(String id, String name) {
26 super();
27 this.id = Integer.valueOf(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 Birthday getDob() {
40 return dob;
41 }
42
43 public void setDob(String dob) {
44 this.dob = new Birthday(dob);
45 }
46
47 class Birthday {
48 private final LocalDate date;
49
50 Birthday(String date) {
51 this.date = LocalDate.parse(date);
52 }
53
54 public LocalDate getDate() {
55 return date;
56 }
57
58 }
59 }