Class BookmarkEntity

java.lang.Object
org.glassfish.jersey.examples.bookmark_em.entity.BookmarkEntity
All Implemented Interfaces:
Serializable

@Entity public class BookmarkEntity extends Object implements Serializable
Entity class BookmarkEntity.
Author:
Jakub Podlesak
See Also:
  • Field Details

    • bookmarkEntityPK

      protected BookmarkEntityPK bookmarkEntityPK
      EmbeddedId primary key field
  • Constructor Details

    • BookmarkEntity

      public BookmarkEntity()
      Creates a new instance of BookmarkEntity
    • BookmarkEntity

      public BookmarkEntity(BookmarkEntityPK bookmarkEntityPK)
      Creates a new instance of BookmarkEntity with the specified values.
      Parameters:
      bookmarkEntityPK - the bookmarkEntityPK of the BookmarkEntity
    • BookmarkEntity

      public BookmarkEntity(BookmarkEntityPK bookmarkEntityPK, String uri)
      Creates a new instance of BookmarkEntity with the specified values.
      Parameters:
      bookmarkEntityPK - the bookmarkEntityPK of the BookmarkEntity
      uri - the uri of the BookmarkEntity
    • BookmarkEntity

      public BookmarkEntity(String bmid, String userid)
      Creates a new instance of BookmarkEntityPK with the specified values.
      Parameters:
      bmid - the bmid of the BookmarkEntityPK
      userid - the userid of the BookmarkEntityPK
  • Method Details

    • getBookmarkEntityPK

      public BookmarkEntityPK getBookmarkEntityPK()
      Gets the bookmarkEntityPK of this BookmarkEntity.
      Returns:
      the bookmarkEntityPK
    • setBookmarkEntityPK

      public void setBookmarkEntityPK(BookmarkEntityPK bookmarkEntityPK)
      Sets the bookmarkEntityPK of this BookmarkEntity to the specified value.
      Parameters:
      bookmarkEntityPK - the new bookmarkEntityPK
    • getUri

      public String getUri()
      Gets the uri of this BookmarkEntity.
      Returns:
      the uri
    • setUri

      public void setUri(String uri)
      Sets the uri of this BookmarkEntity to the specified value.
      Parameters:
      uri - the new uri
    • getUpdated

      public Date getUpdated()
      Gets the updated of this BookmarkEntity.
      Returns:
      the updated
    • setUpdated

      public void setUpdated(Date updated)
      Sets the updated of this BookmarkEntity to the specified value.
      Parameters:
      updated - the new updated
    • getLdesc

      public String getLdesc()
      Gets the ldesc of this BookmarkEntity.
      Returns:
      the ldesc
    • setLdesc

      public void setLdesc(String ldesc)
      Sets the ldesc of this BookmarkEntity to the specified value.
      Parameters:
      ldesc - the new ldesc
    • getSdesc

      public String getSdesc()
      Gets the sdesc of this BookmarkEntity.
      Returns:
      the sdesc
    • setSdesc

      public void setSdesc(String sdesc)
      Sets the sdesc of this BookmarkEntity to the specified value.
      Parameters:
      sdesc - the new sdesc
    • getUserEntity

      public UserEntity getUserEntity()
      Gets the userEntity of this BookmarkEntity.
      Returns:
      the userEntity
    • setUserEntity

      public void setUserEntity(UserEntity userEntity)
      Sets the userEntity of this BookmarkEntity to the specified value.
      Parameters:
      userEntity - the new userEntity
    • 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.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • equals

      public boolean equals(Object object)
      Determines whether another object is equal to this BookmarkEntity. The result is true if and only if the argument is not null and is a BookmarkEntity object that has the same id field values as this object.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the argument; false otherwise.
    • toString

      public String toString()
      Returns a string representation of the object. This implementation constructs that representation based on the id fields.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.