1
2
3
4 package org.marketchangers.prayer;
5
6 /***
7 * @author Jason Williams
8 * @hibernate.class table="PrayerCategories"
9 */
10 public class PrayerCategory extends PersistentObject {
11
12 private String name;
13 private String requestorUserId;
14
15 /***
16 * @hibernate.property
17 * @return
18 */
19 public String getName() {
20 return name;
21 }
22
23 /***
24 * @param string
25 */
26 public void setName(String string) {
27 name = string;
28 }
29 public boolean equals(Object o) {
30 if (o == this) {
31 return true;
32 }
33
34 if (!(o instanceof PrayerCategory)) {
35 return false;
36 }
37
38 PrayerCategory other = (PrayerCategory) o;
39 return equals(this.name, other.name);
40 }
41
42 private boolean equals(Object lhs, Object rhs) {
43 return lhs == null ? rhs == null : lhs.equals(rhs);
44 }
45
46 public int hashCode() {
47 int result = 11;
48 result = result * 37 + hashCode(name);
49 return result;
50 }
51
52 private int hashCode(Object o) {
53 return o == null ? 0 : o.hashCode();
54 }
55 /***
56 * @hibernate.property
57 * @return
58 */
59 public String getRequestorUserId() {
60 return requestorUserId;
61 }
62
63 /***
64 * @param string
65 */
66 public void setRequestorUserId(String string) {
67 requestorUserId = string;
68 }
69
70 public String toString() {
71 return name == null ? "" : name;
72 }
73 }