1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.immutable_constructor;
17
18 import java.io.Serializable;
19
20 public class ImmutablePOJO implements Serializable {
21
22 private static final long serialVersionUID = -7086198701202598455L;
23 private final Integer immutableId;
24 private final String immutableDescription;
25
26 public ImmutablePOJO(Integer immutableId, String immutableDescription) {
27 this.immutableId = immutableId;
28 this.immutableDescription = immutableDescription;
29 }
30
31 public Integer getImmutableId() {
32 return immutableId;
33 }
34
35 public String getImmutableDescription() {
36 return immutableDescription;
37 }
38
39 }