1 package examples;
2
3 import static org.pojomatic.annotations.PojomaticPolicy.NONE;
4
5 import org.pojomatic.Pojomatic;
6 import org.pojomatic.annotations.AutoProperty;
7 import org.pojomatic.annotations.Property;
8
9 @AutoProperty
10 public class Auto {
11 private boolean test;
12
13 @Property(policy=NONE)
14 private int exclude;
15
16 @Property
17 public String derived() {
18 return String.valueOf(System.currentTimeMillis());
19 }
20
21
22 @Override public int hashCode() {
23 return Pojomatic.hashCode(this);
24 }
25
26 @Override public String toString() {
27 return Pojomatic.toString(this);
28 }
29
30 @Override public boolean equals(Object o) {
31 return Pojomatic.equals(this, o);
32 }
33
34 public boolean isTest() {
35 return test;
36 }
37
38 public void setTest(boolean test) {
39 this.test = test;
40 }
41
42 public int getExclude() {
43 return exclude;
44 }
45
46 public void setExclude(int exclude) {
47 this.exclude = exclude;
48 }
49
50 }