Skip to content

Commit

Permalink
adiciona dicas no construtor
Browse files Browse the repository at this point in the history
  • Loading branch information
magnoazneto committed Apr 19, 2021
1 parent 66c000f commit 9e8bb07
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public class Autor {
@Deprecated
public Autor(){ }

public Autor(String nome, String descricao, String email) {
public Autor(@NotBlank String nome,
@NotBlank
@Length(max = 400) String descricao,
@NotBlank @Email String email) {
this.nome = nome;
this.descricao = descricao;
this.email = email;
Expand Down

0 comments on commit 9e8bb07

Please sign in to comment.