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

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

    • UserEntity

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

      public UserEntity(String userid)
      Creates a new instance of UserEntity with the specified values.
      Parameters:
      userid - the userid of the UserEntity
    • UserEntity

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

    • getUserid

      public String getUserid()
      Gets the userid of this UserEntity.
      Returns:
      the userid
    • setUserid

      public void setUserid(String userid)
      Sets the userid of this UserEntity to the specified value.
      Parameters:
      userid - the new userid
    • getPassword

      public String getPassword()
      Gets the password of this UserEntity.
      Returns:
      the password
    • setPassword

      public void setPassword(String password)
      Sets the password of this UserEntity to the specified value.
      Parameters:
      password - the new password
    • getUsername

      public String getUsername()
      Gets the username of this UserEntity.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets the username of this UserEntity to the specified value.
      Parameters:
      username - the new username
    • getEmail

      public String getEmail()
      Gets the email of this UserEntity.
      Returns:
      the email
    • setEmail

      public void setEmail(String email)
      Sets the email of this UserEntity to the specified value.
      Parameters:
      email - the new email
    • getBookmarkEntityCollection

      public Collection<BookmarkEntity> getBookmarkEntityCollection()
      Gets the bookmarkEntityCollection of this UserEntity.
      Returns:
      the bookmarkEntityCollection
    • setBookmarkEntityCollection

      public void setBookmarkEntityCollection(Collection<BookmarkEntity> bookmarkEntityCollection)
      Sets the bookmarkEntityCollection of this UserEntity to the specified value.
      Parameters:
      bookmarkEntityCollection - the new bookmarkEntityCollection
    • 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 UserEntity. The result is true if and only if the argument is not null and is a UserEntity 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.