Tirando main de teste do Preço
This commit is contained in:
parent
c7fe4a8b7c
commit
b8b8373d93
1 changed files with 1 additions and 6 deletions
|
@ -6,8 +6,8 @@ import casa.sotu.organizajogos.api.excecao.PrecoInvalidoExcecao;
|
|||
import jakarta.persistence.Embeddable;
|
||||
import jakarta.persistence.EnumType;
|
||||
import jakarta.persistence.Enumerated;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
@Embeddable
|
||||
public record Preco(
|
||||
|
@ -38,9 +38,4 @@ public record Preco(
|
|||
DESCONHECIDO,
|
||||
PRESENTE;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Preco preco = new Preco(BigDecimal.valueOf(10000, 2), TipoDePreco.DESCONHECIDO);
|
||||
System.out.println(preco);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue