1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| package org.jboss.cache.pojo.test; |
9 |
| |
10 |
| import org.jboss.cache.pojo.annotation.Serializable; |
11 |
| import org.jboss.cache.pojo.annotation.Transient; |
12 |
| |
13 |
| |
14 |
| |
15 |
| |
16 |
| |
17 |
| |
18 |
| |
19 |
| @org.jboss.cache.pojo.annotation.Replicable |
20 |
| public class Gadget |
21 |
| { |
22 |
| String name; |
23 |
| @Transient |
24 |
| Resource resource; |
25 |
| @Serializable |
26 |
| SpecialAddress addr; |
27 |
| |
28 |
4
| public String getName()
|
29 |
| { |
30 |
4
| return name;
|
31 |
| } |
32 |
| |
33 |
2
| public void setName(String name)
|
34 |
| { |
35 |
2
| this.name = name;
|
36 |
| } |
37 |
| |
38 |
2
| public Resource getResource()
|
39 |
| { |
40 |
2
| return resource;
|
41 |
| } |
42 |
| |
43 |
1
| public void setResource(Resource resource)
|
44 |
| { |
45 |
1
| this.resource = resource;
|
46 |
| } |
47 |
| |
48 |
3
| public SpecialAddress getAddr()
|
49 |
| { |
50 |
3
| return addr;
|
51 |
| } |
52 |
| |
53 |
2
| public void setAddr(SpecialAddress addr)
|
54 |
| { |
55 |
2
| this.addr = addr;
|
56 |
| } |
57 |
| |
58 |
0
| public String toString()
|
59 |
| { |
60 |
0
| return "name=" + getName() + ", resource=" + getResource() + ", SepcialAddress: " + getAddr();
|
61 |
| } |
62 |
| } |