@Entity
public class Comment
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Comment() |
Comment(java.lang.Long id) |
Comment(java.lang.Long id,
java.util.Date submitted) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getAuthor()
Author of the comment.
|
java.lang.String |
getComment()
The actual comment.
|
GalleryPhotograph |
getGalleryphotograph()
The photograph in the gallery, on which this comment applies.
|
java.lang.Long |
getId()
Unique number, primary key, identification of a comment.
|
java.util.Date |
getSubmitted()
date/time when the comment was submitted.
|
int |
hashCode() |
void |
setAuthor(java.lang.String author)
Sets the author of the comment.
|
void |
setComment(java.lang.String comment)
Sets the comment.
|
void |
setGalleryphotograph(GalleryPhotograph galleryphotograph)
Sets the photograph to which this comment applies.
|
void |
setId(java.lang.Long id)
Sets the identifier
|
void |
setSubmitted(java.util.Date submitted)
Set the date/time when the comment was submitted.
|
java.lang.String |
toString() |
public Comment()
public Comment(java.lang.Long id)
public Comment(java.lang.Long id, java.util.Date submitted)
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- the unique identifier, Long.public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- the new author.public java.util.Date getSubmitted()
public void setSubmitted(java.util.Date submitted)
submitted
- the new Date/time.public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the (new) commentpublic GalleryPhotograph getGalleryphotograph()
public void setGalleryphotograph(GalleryPhotograph galleryphotograph)
galleryphotograph
- the photograph in the gallerypublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object