1 package mir.core.model;
3 import java.io.Serializable;
5 import org.apache.commons.lang.builder.EqualsBuilder;
6 import org.apache.commons.lang.builder.HashCodeBuilder;
7 import org.apache.commons.lang.builder.ToStringBuilder;
9 /** @author Hibernate CodeGenerator */
10 public class CommentStatus implements Serializable {
12 /** identifier field */
15 /** persistent field */
18 /** full constructor */
19 public CommentStatus(java.lang.String name) {
23 /** default constructor */
24 public CommentStatus() {
27 public java.lang.Integer getId() {
31 public void setId(java.lang.Integer id) {
35 public java.lang.String getName() {
39 public void setName(java.lang.String name) {
43 public String toString() {
44 return new ToStringBuilder(this)
45 .append("id", getId())
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())
57 public int hashCode() {
58 return new HashCodeBuilder()