Skip to content

Commit f2a29ca

Browse files
committed
renomeando a entidade do pacote, jpa não permite classes de entidades com nomes iguais
1 parent 01be39a commit f2a29ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/dev/emanoel/modulo04/model/Categoria.java renamed to src/main/java/dev/emanoel/modulo04/model/Categoria2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
@Entity
66
@Table(name = "categorias")
7-
public class Categoria {
7+
public class Categoria2 {
88

99
@Id
1010
@GeneratedValue(strategy = GenerationType.IDENTITY)
1111
private Long id;
1212
private String nome;
1313

14-
public Categoria() {
14+
public Categoria2() {
1515
}
1616

1717
public Long getId() {

0 commit comments

Comments
 (0)