Package com.cyran.tp.server.users
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 userjava.lang.Integer
getId()
Gets id of mapped userjava.lang.String
getName()
Gets name of mapped userjava.lang.String
getPassword()
Gets hashed for of password for mapped userPriviledges
getRole()
Gets role for mapped user - role in eshop (priviledge)void
setEmail(java.lang.String email)
Sets email of mapped uservoid
setId(java.lang.Integer id)
Sets id of mapped uservoid
setName(java.lang.String name)
Sets name of mapped uservoid
setPassword(java.lang.String password)
Sets hashed form of password for mapped uservoid
setRole(Priviledges role)
Sets role for mapped user - role in eshop (priviledge)
-
Constructor Details
-
Users
public Users()
-
-
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
Gets role for mapped user - role in eshop (priviledge)- Returns:
- role in eshop for mapped user
-
setRole
Sets role for mapped user - role in eshop (priviledge)- Parameters:
role
- in eshop for mapped user
-