01: package simpleorm.simplewebapp.eg.simple;
02:
03: import java.util.Date;
04:
05: public class WTestRecord {
06: Integer index;
07: String idx; // Hibernate BUG if id -- refers to the index!
08: String name;
09: String color;
10: String alignment;
11: String happy;
12: Integer count;
13: Date datefield;
14:
15: private WTestRecord() {
16: } // Just for Hibernate
17:
18: public WTestRecord(int index, String id) {
19: this .index = index;
20: this .idx = id;
21: }
22:
23: public String toString() {
24: return "{WTestRecord " + idx + ":" + name + "}";
25: }
26:
27: /** ie. the WTestRecord.id String, NOT the WListPage.id WField. */
28: public String getId() {
29: return idx;
30: }
31:
32: //public void setId(String id) -- Cannot change the ID of a row.
33:
34: public String getName() {
35: return name;
36: }
37:
38: public void setName(String name) {
39: this .name = name;
40: }
41:
42: public String getColor() {
43: return color;
44: }
45:
46: public void setColor(String color) {
47: this .color = color;
48: }
49:
50: public String getAlignment() {
51: return alignment;
52: }
53:
54: public void setAlignment(String alignment) {
55: this .alignment = alignment;
56: }
57:
58: public String getHappy() {
59: return happy;
60: }
61:
62: public void setHappy(String happy) {
63: this .happy = happy;
64: }
65:
66: public Integer getCount() {
67: return count;
68: }
69:
70: public void setCount(Integer count) {
71: this .count = count;
72: }
73:
74: public Date getDatefield() {
75: return datefield;
76: }
77:
78: public void setDatefield(Date datefield) {
79: this .datefield = datefield;
80: }
81: } // WTestRecord
|