@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.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