1 /**
2 * Copyright 2009-2019 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.apache.ibatis.submitted.ognl_enum;
17
18 public class Person {
19 public enum Type {
20 EMPLOYEE,
21 DIRECTOR
22 }
23
24 private Long id;
25 private String firstName;
26 private String lastName;
27 public String getFirstName() {
28 return firstName;
29 }
30 public void setFirstName(String firstName) {
31 this.firstName = firstName;
32 }
33 public String getLastName() {
34 return lastName;
35 }
36 public void setLastName(String lastName) {
37 this.lastName = lastName;
38 }
39 public Long getId() {
40 return id;
41 }
42 public void setId(Long id) {
43 this.id = id;
44 }
45 }