@Embeddable
public class TagPK
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
TagPK() |
TagPK(java.lang.String tagname,
long photographId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
long |
getPhotographId()
Returns the id of the photograph
|
java.lang.String |
getTagname()
Returns the tag name.
|
int |
hashCode() |
void |
setPhotographId(long photographId)
Sets the id of the photograph
|
void |
setTagname(java.lang.String tagname)
Sets the tag name.
|
java.lang.String |
toString() |
public TagPK()
public TagPK(java.lang.String tagname,
long photographId)
public java.lang.String getTagname()
public void setTagname(java.lang.String tagname)
tagname - the new tagnamepublic long getPhotographId()
public void setPhotographId(long photographId)
photographId - long containing the id of the photographpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object