1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| package org.jboss.cache.pojo.test; |
9 |
| |
10 |
| import java.io.Serializable; |
11 |
| import java.util.ArrayList; |
12 |
| import java.util.List; |
13 |
| |
14 |
| |
15 |
| |
16 |
| |
17 |
| |
18 |
| |
19 |
| @org.jboss.cache.pojo.annotation.Replicable |
20 |
| public class SpecialSerializedAddress implements Serializable |
21 |
| { |
22 |
| String street = null; |
23 |
| String city = null; |
24 |
| int zip = 0; |
25 |
| |
26 |
| List residents = new ArrayList(); |
27 |
| |
28 |
0
| public List getResidents()
|
29 |
| { |
30 |
0
| return residents;
|
31 |
| } |
32 |
| |
33 |
0
| public void setResidents(List residents)
|
34 |
| { |
35 |
0
| this.residents = residents;
|
36 |
| } |
37 |
| |
38 |
2
| public void addResidents(String name)
|
39 |
| { |
40 |
2
| residents.add(name);
|
41 |
| } |
42 |
| |
43 |
0
| public String getStreet()
|
44 |
| { |
45 |
0
| return street;
|
46 |
| } |
47 |
| |
48 |
0
| public void setStreet(String street)
|
49 |
| { |
50 |
0
| this.street = street;
|
51 |
| } |
52 |
| |
53 |
0
| public String getCity()
|
54 |
| { |
55 |
0
| return city;
|
56 |
| } |
57 |
| |
58 |
0
| public void setCity(String city)
|
59 |
| { |
60 |
0
| this.city = city;
|
61 |
| } |
62 |
| |
63 |
1
| public int getZip()
|
64 |
| { |
65 |
1
| return zip;
|
66 |
| } |
67 |
| |
68 |
1
| public void setZip(int zip)
|
69 |
| { |
70 |
1
| this.zip = zip;
|
71 |
| } |
72 |
| |
73 |
0
| public String toString()
|
74 |
| { |
75 |
0
| return "street=" + getStreet() + ", city=" + getCity() + ", zip=" + getZip();
|
76 |
| } |
77 |
| |
78 |
| |
79 |
| |
80 |
| |
81 |
| } |