User.java
package com.privacydashboard.application.data.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.privacydashboard.application.data.GlobalVariables.Role;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Lob;
import javax.persistence.Table;
@Entity
@Table(name = "application_user")
public class User extends AbstractEntity {
private String name;
@JsonIgnore
private String hashedPassword;
@Enumerated(EnumType.STRING)
private Role role;
private String mail;
// da cambiare, salvare nel DB le immagini??
@Lob
private String profilePictureUrl;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getHashedPassword() {
return hashedPassword;
}
public void setHashedPassword(String hashedPassword) {
this.hashedPassword = hashedPassword;
}
public Role getRole() {
return role;
}
public void setRole(Role role) {
this.role = role;
}
public String getProfilePictureUrl() {
return profilePictureUrl;
}
public void setProfilePictureUrl(String profilePictureUrl) {
this.profilePictureUrl = profilePictureUrl;
}
public String getMail() {
return mail;
}
public void setMail(String mail) {
this.mail = mail;
}
}