Class BookmarkEntityPK
- java.lang.Object
-
- org.glassfish.jersey.examples.bookmark_em.entity.BookmarkEntityPK
-
- All Implemented Interfaces:
Serializable
@Embeddable public class BookmarkEntityPK extends Object implements Serializable
Primary Key class BookmarkEntityPK for entity class BookmarkEntity.- Author:
- Jakub Podlesak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BookmarkEntityPK()Creates a new instance of BookmarkEntityPKBookmarkEntityPK(String bmid, String userid)Creates a new instance of BookmarkEntityPK with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Determines whether another object is equal to this BookmarkEntityPK.StringgetBmid()Gets the bmid of this BookmarkEntityPK.StringgetUserid()Gets the userid of this BookmarkEntityPK.inthashCode()Returns a hash code value for the object.voidsetBmid(String bmid)Sets the bmid of this BookmarkEntityPK to the specified value.voidsetUserid(String userid)Sets the userid of this BookmarkEntityPK to the specified value.StringtoString()Returns a string representation of the object.
-
-
-
Method Detail
-
getUserid
public String getUserid()
Gets the userid of this BookmarkEntityPK.- Returns:
- the userid
-
setUserid
public void setUserid(String userid)
Sets the userid of this BookmarkEntityPK to the specified value.- Parameters:
userid- the new userid
-
getBmid
public String getBmid()
Gets the bmid of this BookmarkEntityPK.- Returns:
- the bmid
-
setBmid
public void setBmid(String bmid)
Sets the bmid of this BookmarkEntityPK to the specified value.- Parameters:
bmid- the new bmid
-
hashCode
public int hashCode()
Returns a hash code value for the object. This implementation computes a hash code value based on the id fields in this object.
-
equals
public boolean equals(Object object)
Determines whether another object is equal to this BookmarkEntityPK. The result istrueif and only if the argument is not null and is a BookmarkEntityPK object that has the same id field values as this object.
-
-