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
5c30f7e4
authored
Feb 13, 2025
by
Rubén Ramírez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: [Usuario]: Creada la clase Usuario con los atributos básicos
parent
426aecad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
src/main/java/com/ujaen/tfg/mangaffinity/entidades/Usuario.java
src/main/java/com/ujaen/tfg/mangafginity/entidades/Usuario.java
src/main/java/com/ujaen/tfg/mangaffinity/entidades/Usuario.java
0 → 100644
View file @
5c30f7e4
package
com
.
ujaen
.
tfg
.
mangaffinity
.
entidades
;
import
jakarta.persistence.*
;
import
lombok.*
;
import
jakarta.validation.constraints.Email
;
import
jakarta.validation.constraints.NotBlank
;
@Entity
@Table
(
name
=
"usuarios"
)
@Getter
@NoArgsConstructor
public
class
Usuario
{
// Clave
@Getter
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@Email
@NotBlank
@Column
(
unique
=
true
,
nullable
=
false
)
private
String
email
;
@NotBlank
@Column
(
unique
=
true
,
nullable
=
false
)
private
String
nombreUsuario
;
@NotBlank
@Column
(
nullable
=
false
)
private
String
contrasenia
;
public
Usuario
(
String
email
,
String
nombreUsuario
,
String
contrasenia
)
{
this
.
email
=
email
;
this
.
nombreUsuario
=
nombreUsuario
;
this
.
contrasenia
=
contrasenia
;
}
}
src/main/java/com/ujaen/tfg/mangafginity/entidades/Usuario.java
deleted
100644 → 0
View file @
426aecad
package
com
.
ujaen
.
tfg
.
mangafginity
.
entidades
;
public
class
Usuario
{
}
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