Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Rubén Ramírez
/
MangAffinity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a91dfca7
authored
May 02, 2025
by
Rubén Ramírez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: [Usuario]: Añadidos nuevos atributos
parent
01ea8977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/main/java/com/ujaen/tfg/mangaffinity/entidades/Usuario.java
src/main/java/com/ujaen/tfg/mangaffinity/entidades/Usuario.java
View file @
a91dfca7
...
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment