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 * @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="project_status_lookup"
21 */
22 public class ProjectStatus extends BaseObject implements Serializable {
23
24 private Integer id;
25 private String projectStatusName;
26 private String projectStatusDescription;
27
28
29
30 /***
31 *
32 */
33 public ProjectStatus() {
34 }
35
36 /***
37 * @return Returns the id.
38 * @hibernate.id column="id"
39 * generator-class="increment" unsaved-value="null"
40 */
41 public Integer getId() {
42 return id;
43 }
44 /***
45 * @param id The id to set.
46 */
47 public void setId(Integer id) {
48 this.id = id;
49 }
50
51 /***
52 * @return Returns the projectStatusName.
53 * @hibernate.property column="project_status_name" not-null="true" length="50"
54 */
55 public String getProjectStatusName() {
56 return projectStatusName;
57 }
58
59 /***
60 * @param projectStatusName The projectStatusName to set.
61 * @spring.validator type="required"
62 */
63 public void setProjectStatusName(String projectStatusName) {
64 this.projectStatusName = projectStatusName;
65 }
66
67 /***
68 * @return Returns the projectStatusDescription.
69 * @hibernate.property column="project_status_description" not-null="true" length="255"
70 */
71 public String getProjectStatusDescription() {
72 return projectStatusDescription;
73 }
74 /***
75 * @param projectStatusDescription The projectStatusDescription to set.
76 *
77 * @spring.validator type="required"
78 */
79 public void setProjectStatusDescription(String projectStatusDescription) {
80 this.projectStatusDescription = projectStatusDescription;
81 }
82 /***
83 * @see java.lang.Object#equals(Object)
84 */
85 public boolean equals(Object object) {
86 if (!(object instanceof ProjectStatus)) {
87 return false;
88 }
89 ProjectStatus rhs = (ProjectStatus) object;
90 return new EqualsBuilder().append(
91 this.projectStatusDescription, rhs.projectStatusDescription)
92 .append(this.projectStatusName, rhs.projectStatusName).append(
93 this.id, rhs.id).isEquals();
94 }
95 /***
96 * @see java.lang.Object#hashCode()
97 */
98 public int hashCode() {
99 return new HashCodeBuilder(-454086483, -1234886487).append(this.projectStatusDescription).append(
100 this.projectStatusName).append(this.id).toHashCode();
101 }
102 /***
103 * @see java.lang.Object#toString()
104 */
105 public String toString() {
106 return new ToStringBuilder(this).append("projectStatusDescription",
107 this.projectStatusDescription).append("id", this.id).append(
108 "projectStatusName", this.projectStatusName).toString();
109 }
110 }