File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/java/dev/emanoel/modulo02/teste Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
package dev .emanoel .modulo02 .teste ;
2
2
3
3
import dev .emanoel .modulo02 .dao .ProdutoDAO ;
4
+ import dev .emanoel .modulo02 .model .Categoria ;
4
5
import dev .emanoel .modulo02 .model .Produto ;
5
6
import dev .emanoel .modulo02 .util .JPAUtil ;
6
7
@@ -12,9 +13,10 @@ public class CadastroProdutoTeste {
12
13
public static void main (String [] args ) {
13
14
14
15
Produto produto = new Produto ();
15
- produto .setNome ("headset" );
16
- produto .setDescricao ("headset preto" );
17
- produto .setPreco (new BigDecimal ("150" ));
16
+ produto .setNome ("livro" );
17
+ produto .setDescricao ("livro sociologia" );
18
+ produto .setPreco (new BigDecimal ("50" ));
19
+ produto .setCategoria (Categoria .LIVROS );
18
20
19
21
EntityManager entityManager = JPAUtil .getEntityManager ();
20
22
You can’t perform that action at this time.
0 commit comments