refactor(User): cambio id a Long y refactorización a User de las clases

parent 24ccf9f5
......@@ -5,9 +5,9 @@ import lombok.*;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Usuario {
public class User {
private int id;
private Long id;
private String nombre;
private String apellidos;
private String email;
......
......@@ -10,7 +10,7 @@ import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UsuarioInputDto {
public class UserInputDto {
@Size(min = 2, max = 20, message = "El nombre debe tener entre 6 y 20 caracteres")
private String nombre;
......
......@@ -7,9 +7,9 @@ import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UsuarioOutputDto {
public class UserOutputDto {
private int id;
private Long id;
private String nombre;
private String apellidos;
private String email;
......
......@@ -8,12 +8,12 @@ import lombok.Setter;
@Table(name = "usuarios")
@Getter
@Setter
public class UsuarioJpa {
public class UserJpa {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id_usuario")
private int id;
private Long id;
@Column(name = "nombre")
private String nombre;
......
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