1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.enumtypehandler_on_annotation;
17
18
19
20
21
22
23 public class Person {
24
25 enum PersonType {
26 PERSON, EMPLOYEE
27 }
28
29 private Integer id;
30 private String firstName;
31 private String lastName;
32 private PersonType personType;
33
34 public Person() {
35 }
36
37 public Person(Integer id, String firstName, String lastName, PersonType personType) {
38 this.id = id;
39 this.firstName = firstName;
40 this.lastName = lastName;
41 this.personType = personType;
42 }
43
44 public String getFirstName() {
45 return firstName;
46 }
47
48 public void setFirstName(String firstName) {
49 this.firstName = firstName;
50 }
51
52 public String getLastName() {
53 return lastName;
54 }
55
56 public void setLastName(String lastName) {
57 this.lastName = lastName;
58 }
59
60 public Integer getId() {
61 return id;
62 }
63
64 public void setId(Integer id) {
65 this.id = id;
66 }
67
68 public PersonType getPersonType() {
69 return personType;
70 }
71
72 public void setPersonType(PersonType personType) {
73 this.personType = personType;
74 }
75
76 }