Commit dacb387d by Rubén Ramírez

feat: [DTOUsuario]:Creado un nuevo constructor necesario

parent 35ace176
...@@ -7,7 +7,6 @@ import lombok.Getter; ...@@ -7,7 +7,6 @@ import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
@Getter @Getter
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
...@@ -29,8 +28,8 @@ public class DTOUsuario { ...@@ -29,8 +28,8 @@ public class DTOUsuario {
private String fotoPerfil; private String fotoPerfil;
public DTOUsuario( String email, String nombreUsuario, String contrasenia) { public DTOUsuario(String email, String nombreUsuario, String contrasenia) {
id = null; this.id = null;
this.email = email; this.email = email;
this.nombreUsuario = nombreUsuario; this.nombreUsuario = nombreUsuario;
this.contrasenia = contrasenia; this.contrasenia = contrasenia;
...@@ -39,5 +38,9 @@ public class DTOUsuario { ...@@ -39,5 +38,9 @@ public class DTOUsuario {
} }
public DTOUsuario(Long id, @Email @NotBlank String email, @NotBlank String nombreUsuario, @NotBlank String contrasenia) { public DTOUsuario(Long id, @Email @NotBlank String email, @NotBlank String nombreUsuario, @NotBlank String contrasenia) {
this.id = id;
this.email = email;
this.nombreUsuario = nombreUsuario;
this.contrasenia = contrasenia;
} }
} }
\ No newline at end of file
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