Class Users

java.lang.Object
com.cyran.tp.server.users.Users

@Entity
public class Users
extends java.lang.Object
Class for mapping user to DB table using Hibernate
Author:
Jakub Perdek, Peter Spusta
  • Constructor Summary

    Constructors 
    Constructor Description
    Users()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getEmail()
    Gets email of mapped user
    java.lang.Integer getId()
    Gets id of mapped user
    java.lang.String getName()
    Gets name of mapped user
    java.lang.String getPassword()
    Gets hashed for of password for mapped user
    Priviledges getRole()
    Gets role for mapped user - role in eshop (priviledge)
    void setEmail​(java.lang.String email)
    Sets email of mapped user
    void setId​(java.lang.Integer id)
    Sets id of mapped user
    void setName​(java.lang.String name)
    Sets name of mapped user
    void setPassword​(java.lang.String password)
    Sets hashed form of password for mapped user
    void setRole​(Priviledges role)
    Sets role for mapped user - role in eshop (priviledge)

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getId

      public java.lang.Integer getId()
      Gets id of mapped user
      Returns:
      id of mapped user
    • setId

      public void setId​(java.lang.Integer id)
      Sets id of mapped user
      Parameters:
      id - of mapped user
    • getName

      public java.lang.String getName()
      Gets name of mapped user
      Returns:
      name of mapped user
    • setName

      public void setName​(java.lang.String name)
      Sets name of mapped user
      Parameters:
      name - of mapped user
    • getEmail

      public java.lang.String getEmail()
      Gets email of mapped user
      Returns:
      email of mapped user
    • setEmail

      public void setEmail​(java.lang.String email)
      Sets email of mapped user
      Parameters:
      email - of mapped user
    • getPassword

      public java.lang.String getPassword()
      Gets hashed for of password for mapped user
      Returns:
      password in hashed form for mapped user
    • setPassword

      public void setPassword​(java.lang.String password)
      Sets hashed form of password for mapped user
      Parameters:
      password - in hash form
    • getRole

      public Priviledges getRole()
      Gets role for mapped user - role in eshop (priviledge)
      Returns:
      role in eshop for mapped user
    • setRole

      public void setRole​(Priviledges role)
      Sets role for mapped user - role in eshop (priviledge)
      Parameters:
      role - in eshop for mapped user