Package balu.pizza.webapp.models
Class Person
java.lang.Object
balu.pizza.webapp.models.Person
Entity user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEmail()Get favorites list of pizzasintgetId()getRole()Get list of pizzasinthashCode()voidvoidvoidsetFavorites(List<Pizza> favorites) voidsetId(int id) voidsetPassword(String password) voidvoidsetUsername(String username) toString()
-
Constructor Details
-
Person
public Person() -
Person
-
Person
- Parameters:
username- Usernamepassword- Passwordemail- Emailavatar- Image
-
-
Method Details
-
getSortedPizza
Get list of pizzas- Returns:
- Sorted by price list of pizzas that the user added to favorites
-
getId
public int getId() -
setId
public void setId(int id) -
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getEmail
-
setEmail
-
getRole
-
setRole
-
getAvatar
-
setAvatar
-
getFavorites
Get favorites list of pizzas- Returns:
- List of pizzas that the user added to favorites
-
setFavorites
-
toString
-
equals
-
hashCode
public int hashCode()
-