Commit a91dfca7 by Rubén Ramírez

feat: [Usuario]: Añadidos nuevos atributos

parent 01ea8977
......@@ -36,6 +36,13 @@ public class Usuario {
@Column(nullable = false)
private String rol;
@Column(length = 255)
private String descripcion;
@Lob
@Column(name = "foto_perfil", columnDefinition = "LONGBLOB")
private byte[] fotoPerfil;
@OneToOne(mappedBy = "usuario", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private BibliotecaPersonal bibliotecaPersonal;
......@@ -44,6 +51,7 @@ public class Usuario {
this.nombreUsuario = nombreUsuario;
this.contrasenia = contrasenia;
this.rol = "USUARIO_REGISTRADO";
this.bibliotecaPersonal = new BibliotecaPersonal(this);
this.bibliotecaPersonal = new BibliotecaPersonal(this); this.descripcion = "";
this.fotoPerfil = null;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment