@Entity
public class GalleryPhotograph
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GalleryPhotograph() |
GalleryPhotograph(java.lang.Long id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.util.Collection<Comment> |
getCommentCollection()
Comments on this photograph.
|
java.lang.String |
getDescription()
Full description of the photograph.
|
Gallery |
getGallery()
Reference to the gallery, that contains this photograph.
|
java.lang.Long |
getId()
Primary key/unique identifier.
|
java.lang.String |
getName()
Name belonging to the picture, originally this is the name of the file,
but can be anything.
|
Photograph |
getPhotograph()
Reference to the original file containing the photograph.
|
java.math.BigInteger |
getSortorder()
Sort order, indicates the order in which the photographs should be displayed,
where 0 is the first photograph, 1 is the next, etc.
|
int |
hashCode() |
void |
setCommentCollection(java.util.Collection<Comment> commentCollection)
Sets the collection of comments.
|
void |
setDescription(java.lang.String description)
Sets the full description of the photograph.
|
void |
setGallery(Gallery gallery)
For setting to which gallery this galleryphotograph belongs.
|
void |
setId(java.lang.Long id)
Sets the unique identifier.
|
void |
setName(java.lang.String name)
Sets the name of the photograph, may be anything.
|
void |
setPhotograph(Photograph photograph)
Sets the photograph where this galleryphotograph refers to.
|
void |
setSortorder(java.math.BigInteger sortorder)
Sets the sort order.
|
java.lang.String |
toString() |
public GalleryPhotograph()
public GalleryPhotograph(java.lang.Long id)
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- the new primary key/unique identifierpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the new namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- String with the new descriptionpublic java.math.BigInteger getSortorder()
public void setSortorder(java.math.BigInteger sortorder)
sortorder
- BigInteger, 0..infinity.public java.util.Collection<Comment> getCommentCollection()
public void setCommentCollection(java.util.Collection<Comment> commentCollection)
commentCollection
- a new collection of comments.public Photograph getPhotograph()
public void setPhotograph(Photograph photograph)
photograph
- the new photographpublic Gallery getGallery()
public void setGallery(Gallery gallery)
gallery
- 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