-
banned
Boolean banned
indicates whether user is banned
-
createdAt
Date createdAt
registration date
-
email
@NotNull(message="E-mail can not be blank") @Email(regexp=".+@.+\\..+",message="Bad e-mail format") @Size(min=1,max=50,message="E-mail must be maximally 50 letters long") String email
email address
-
id
Long id
id - primary key
-
institution
Institution institution
institution that is managed by user
-
likedTranslations
Set<Translation> likedTranslations
all translations that user liked
-
password
@NotNull(message="Password can not be blank") @Size(min=8,message="Password must be at least 8 characters long") @Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).*$",message="Password must contain a lowercase and an uppercase letter and a number") String password
hashed password
-
roles
Set<Role> roles
roles that represents user's rights
-
translations
Set<Translation> translations
all translation written by user
-
username
@NotNull(message="Username can not be blank") @Size(min=3,max=30,message="Username must be between 3 to 30 letters long") String username
unique username