eb28fda008855d210801c24dd18398716dc5f179
[mir.git] / source / mir / core / model / CommentStatus.java
1 package mir.core.model;
2
3 import java.io.Serializable;
4
5 import org.apache.commons.lang.builder.EqualsBuilder;
6 import org.apache.commons.lang.builder.HashCodeBuilder;
7 import org.apache.commons.lang.builder.ToStringBuilder;
8
9 /** @author Hibernate CodeGenerator */
10 public class CommentStatus implements Serializable {
11
12     /** identifier field */
13     private Integer id;
14
15     /** persistent field */
16     private String name;
17
18     /** full constructor */
19     public CommentStatus(java.lang.String name) {
20         this.name = name;
21     }
22
23     /** default constructor */
24     public CommentStatus() {
25     }
26
27     public java.lang.Integer getId() {
28         return this.id;
29     }
30
31     public void setId(java.lang.Integer id) {
32         this.id = id;
33     }
34
35     public java.lang.String getName() {
36         return this.name;
37     }
38
39     public void setName(java.lang.String name) {
40         this.name = name;
41     }
42
43     public String toString() {
44         return new ToStringBuilder(this)
45             .append("id", getId())
46             .toString();
47     }
48
49     public boolean equals(Object other) {
50         if ( !(other instanceof CommentStatus) ) return false;
51         CommentStatus castOther = (CommentStatus) other;
52         return new EqualsBuilder()
53             .append(this.getId(), castOther.getId())
54             .isEquals();
55     }
56
57     public int hashCode() {
58         return new HashCodeBuilder()
59             .append(getId())
60             .toHashCode();
61     }
62
63 }