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 Message implements Serializable {
12 /** identifier field */
15 /** nullable persistent field */
18 /** persistent field */
19 private String description;
21 /** persistent field */
22 private String creator;
24 /** persistent field */
25 private java.util.Date webdbCreate;
27 /** full constructor */
28 public Message(java.lang.String title, java.lang.String description, java.lang.String creator, java.util.Date webdbCreate) {
30 this.description = description;
31 this.creator = creator;
32 this.webdbCreate = webdbCreate;
35 /** default constructor */
39 /** minimal constructor */
40 public Message(java.lang.String description, java.lang.String creator, java.util.Date webdbCreate) {
41 this.description = description;
42 this.creator = creator;
43 this.webdbCreate = webdbCreate;
46 public java.lang.Integer getId() {
50 public void setId(java.lang.Integer id) {
54 public java.lang.String getTitle() {
58 public void setTitle(java.lang.String title) {
62 public java.lang.String getDescription() {
63 return this.description;
66 public void setDescription(java.lang.String description) {
67 this.description = description;
70 public java.lang.String getCreator() {
74 public void setCreator(java.lang.String creator) {
75 this.creator = creator;
78 public java.util.Date getWebdbCreate() {
79 return this.webdbCreate;
82 public void setWebdbCreate(java.util.Date webdbCreate) {
83 this.webdbCreate = webdbCreate;
86 public String toString() {
87 return new ToStringBuilder(this)
88 .append("id", getId())
92 public boolean equals(Object other) {
93 if ( !(other instanceof Message) ) return false;
94 Message castOther = (Message) other;
95 return new EqualsBuilder()
96 .append(this.getId(), castOther.getId())
100 public int hashCode() {
101 return new HashCodeBuilder()