Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alba María Álvarez
/
AppRecetas
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
39b8212e
authored
Apr 24, 2025
by
Alba María Álvarez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
refactor(User): cambio id a Long y refactorización a User de las clases
parent
24ccf9f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
src/main/java/com/example/apprecetas/domain/entity/Usuario.java → src/main/java/com/example/apprecetas/domain/entity/User.java
src/main/java/com/example/apprecetas/infrastructure/controller/dto/UsuarioInputDto.java → src/main/java/com/example/apprecetas/infrastructure/controller/dto/UserInputDto.java
src/main/java/com/example/apprecetas/infrastructure/controller/dto/UsuarioOutputDto.java → src/main/java/com/example/apprecetas/infrastructure/controller/dto/UserOutputDto.java
src/main/java/com/example/apprecetas/infrastructure/repository/jpa/UsuarioJpa.java → src/main/java/com/example/apprecetas/infrastructure/repository/jpa/UserJpa.java
src/main/java/com/example/apprecetas/domain/entity/Us
uario
.java
→
src/main/java/com/example/apprecetas/domain/entity/Us
er
.java
View file @
39b8212e
...
@@ -5,9 +5,9 @@ import lombok.*;
...
@@ -5,9 +5,9 @@ import lombok.*;
@Data
@Data
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
public
class
Us
uario
{
public
class
Us
er
{
private
int
id
;
private
Long
id
;
private
String
nombre
;
private
String
nombre
;
private
String
apellidos
;
private
String
apellidos
;
private
String
email
;
private
String
email
;
...
...
src/main/java/com/example/apprecetas/infrastructure/controller/dto/Us
uario
InputDto.java
→
src/main/java/com/example/apprecetas/infrastructure/controller/dto/Us
er
InputDto.java
View file @
39b8212e
...
@@ -10,7 +10,7 @@ import lombok.NoArgsConstructor;
...
@@ -10,7 +10,7 @@ import lombok.NoArgsConstructor;
@Data
@Data
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
public
class
Us
uario
InputDto
{
public
class
Us
er
InputDto
{
@Size
(
min
=
2
,
max
=
20
,
message
=
"El nombre debe tener entre 6 y 20 caracteres"
)
@Size
(
min
=
2
,
max
=
20
,
message
=
"El nombre debe tener entre 6 y 20 caracteres"
)
private
String
nombre
;
private
String
nombre
;
...
...
src/main/java/com/example/apprecetas/infrastructure/controller/dto/Us
uario
OutputDto.java
→
src/main/java/com/example/apprecetas/infrastructure/controller/dto/Us
er
OutputDto.java
View file @
39b8212e
...
@@ -7,9 +7,9 @@ import lombok.NoArgsConstructor;
...
@@ -7,9 +7,9 @@ import lombok.NoArgsConstructor;
@Data
@Data
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
public
class
Us
uario
OutputDto
{
public
class
Us
er
OutputDto
{
private
int
id
;
private
Long
id
;
private
String
nombre
;
private
String
nombre
;
private
String
apellidos
;
private
String
apellidos
;
private
String
email
;
private
String
email
;
...
...
src/main/java/com/example/apprecetas/infrastructure/repository/jpa/Us
uario
Jpa.java
→
src/main/java/com/example/apprecetas/infrastructure/repository/jpa/Us
er
Jpa.java
View file @
39b8212e
...
@@ -8,12 +8,12 @@ import lombok.Setter;
...
@@ -8,12 +8,12 @@ import lombok.Setter;
@Table
(
name
=
"usuarios"
)
@Table
(
name
=
"usuarios"
)
@Getter
@Getter
@Setter
@Setter
public
class
Us
uario
Jpa
{
public
class
Us
er
Jpa
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id_usuario"
)
@Column
(
name
=
"id_usuario"
)
private
int
id
;
private
Long
id
;
@Column
(
name
=
"nombre"
)
@Column
(
name
=
"nombre"
)
private
String
nombre
;
private
String
nombre
;
...
...
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