View Javadoc

1   /*
2    * Created on Nov 28, 2004
3    *
4    * TODO To change the template for this generated file go to
5    * Window - Preferences - Java - Code Style - Code Templates
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   * @author John Arthur
16   *
17   * TODO To change the template for this generated type comment go to
18   * Window - Preferences - Java - Code Style - Code Templates
19   * 
20   * @hibernate.class table="issue_status_lookup"
21   */
22  public class IssueStatus extends BaseObject implements Serializable {
23  	private Integer id;
24  	private String issueStatusName;
25  	private String issueStatusDescription;
26  	private Integer value;
27  	private Integer listOrder;
28  	
29  	/***
30  	 * 
31  	 */
32  	public IssueStatus() {
33  
34  	}
35  	/***
36  	 * @return Returns the id.
37  	 * @hibernate.id column="id"
38       *  generator-class="increment" unsaved-value="null"
39  	 */
40  	public Integer getId() {
41  		return id;
42  	}
43  	/***
44  	 * @param id The id to set.
45  	 */
46  	public void setId(Integer id) {
47  		this.id = id;
48  	}
49  
50  	/***
51  	 * @return Returns the issueStatusDescription.
52  	 * @hibernate.property column="issue_status_description" not-null="true" length="255"
53  	 */
54  	public String getIssueStatusDescription() {
55  		return issueStatusDescription;
56  	}
57  	/***
58  	 * @param issueStatusDescription The issueStatusDescription to set.
59  	 *  @spring.validator type="required"
60  	 */
61  	public void setIssueStatusDescription(String projectStatusDescription) {
62  		this.issueStatusDescription = projectStatusDescription;
63  	}
64  	/***
65  	 * @return Returns the issueStatusName.
66  	 * @hibernate.property column="issue_status_name" not-null="true" length="50"
67  	 */
68  	public String getIssueStatusName() {
69  		return issueStatusName;
70  	}
71  	/***
72  	 * @param issueStatusName The issueStatusName to set.
73  	 * 
74  	 *  @spring.validator type="required"
75  	 */
76  	public void setIssueStatusName(String issueStatusName) {
77  		this.issueStatusName = issueStatusName;
78  	}
79  	/***
80  	 * @return Returns the value.
81  	 * @hibernate.property column="issue_status_value" not-null="true" 
82  	 */
83  	public Integer getValue() {
84  		return value;
85  	}
86  	/***
87  	 * @param value The value to set.
88  	 *  @spring.validator type="required"
89  	 */
90  	public void setValue(Integer value) {
91  		this.value = value;
92  	}
93  	
94  	/***
95  	 * @return Returns the listOrder.
96  	 * @hibernate.property column="order_list"
97  	 */
98  	public Integer getListOrder() {
99  		return listOrder;
100 	}
101 	/***
102 	 * @param listOrder The listOrder to set.
103 	 */
104 	public void setListOrder(Integer orderList) {
105 		this.listOrder = orderList;
106 	}	
107 	/***
108 	 * @see java.lang.Object#equals(Object)
109 	 */
110 	public boolean equals(Object object) {
111 		if (!(object instanceof IssueStatus)) {
112 			return false;
113 		}
114 		IssueStatus rhs = (IssueStatus) object;
115 		return new EqualsBuilder().append(
116 				this.value, rhs.value).append(this.listOrder, rhs.listOrder)
117 				.append(this.issueStatusDescription,
118 						rhs.issueStatusDescription).append(
119 						this.issueStatusName, rhs.issueStatusName).append(
120 						this.id, rhs.id).isEquals();
121 	}
122 	/***
123 	 * @see java.lang.Object#hashCode()
124 	 */
125 	public int hashCode() {
126 		return new HashCodeBuilder(2048706273, -2041681291).append(this.value).append(this.listOrder)
127 				.append(this.issueStatusDescription).append(
128 						this.issueStatusName).append(this.id).toHashCode();
129 	}
130 	/***
131 	 * @see java.lang.Object#toString()
132 	 */
133 	public String toString() {
134 		return new ToStringBuilder(this).append("issueStatusDescription",
135 				this.issueStatusDescription).append("id", this.id).append(
136 				"value", this.value).append("listOrder", this.listOrder)
137 				.append("issueStatusName", this.issueStatusName).toString();
138 	}
139 }