1
2
3
4
5
6
7 package com.panogenesis.model;
8
9 import java.io.Serializable;
10
11 import org.apache.commons.lang.builder.EqualsBuilder;
12 import org.apache.commons.lang.builder.HashCodeBuilder;
13 import org.apache.commons.lang.builder.ToStringBuilder;
14
15 /***
16 * @author John Arthur
17 *
18 * TODO To change the template for this generated type comment go to Window -
19 * Preferences - Java - Code Style - Code Templates
20 *
21 * @hibernate.class table="issue_resolution_lookup"
22 */
23 public class IssueResolution extends BaseObject implements Serializable {
24
25 private Integer id;
26
27 private String resolutionName;
28
29 private String resolutionDescription;
30
31 private Integer listOrder;
32
33 /***
34 *
35 */
36 public IssueResolution() {
37 }
38
39 /***
40 * @return Returns the id.
41 * @hibernate.id column="id"
42 * generator-class="increment" unsaved-value="null"
43 */
44 public Integer getId() {
45 return id;
46 }
47
48 /***
49 * @param id
50 * The id to set.
51 */
52 public void setId(Integer id) {
53 this.id = id;
54 }
55
56 /***
57 * @return Returns the resolutionName.
58 * @hibernate.property column="resolution_name" not-null="true" length="50"
59 */
60 public String getResolutionName() {
61 return resolutionName;
62 }
63
64 /***
65 * @param resolutionName
66 * The resolutionName to set.
67 * @spring.validator type="required"
68 */
69 public void setResolutionName(String resolutionName) {
70 this.resolutionName = resolutionName;
71 }
72
73 /***
74 * @return Returns the resolutionDescription.
75 *
76 * @hibernate.property column="resolution_description" not-null="true" length="255"
77 */
78 public String getResolutionDescription() {
79 return resolutionDescription;
80 }
81
82 /***
83 * @param resolutionDescription
84 * The resolutionDescription to set.
85 * @spring.validator type="required"
86 */
87 public void setResolutionDescription(String resolutionDescription) {
88 this.resolutionDescription = resolutionDescription;
89 }
90
91 /***
92 * @return Returns the listOrder.
93 * @hibernate.property column="list_order"
94 */
95 public Integer getListOrder() {
96 return listOrder;
97 }
98
99 /***
100 * @param listOrder
101 * The listOrder to set.
102 */
103 public void setListOrder(Integer listOrder) {
104 this.listOrder = listOrder;
105 }
106
107 /***
108 * @see java.lang.Object#equals(Object)
109 */
110 public boolean equals(Object object) {
111 if (!(object instanceof IssueResolution)) {
112 return false;
113 }
114 IssueResolution rhs = (IssueResolution) object;
115 return new EqualsBuilder().append(this.listOrder, rhs.listOrder)
116 .append(this.resolutionName, rhs.resolutionName).append(
117 this.resolutionDescription, rhs.resolutionDescription)
118 .append(this.id, rhs.id).isEquals();
119 }
120
121 /***
122 * @see java.lang.Object#hashCode()
123 */
124 public int hashCode() {
125 return new HashCodeBuilder(-1118658189, -1190573829).append(
126 this.listOrder).append(this.resolutionName).append(
127 this.resolutionDescription).append(this.id).toHashCode();
128 }
129
130 /***
131 * @see java.lang.Object#toString()
132 */
133 public String toString() {
134 return new ToStringBuilder(this).append("id", this.id).append(
135 "listOrder", this.listOrder).append("resolutionName",
136 this.resolutionName).append("resolutionDescription",
137 this.resolutionDescription).toString();
138 }
139 }