@Entity public class User extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
User() |
|
User(String login,
String password) |
|
User(String login,
String password,
Role role) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToFavorites(Story story) |
boolean |
equals(Object obj) |
Set<Story> |
getFavoriteStories() |
String |
getLogin() |
Role |
getRole() |
Set<Story> |
getStories() |
int |
hashCode() |
void |
setPassword(String password) |
void |
setRole(Role role) |
String |
toString() |
Copyright © 2021. All rights reserved.