Created
March 12, 2024 20:36
-
-
Save brunogamacatao/828a7ae10a1aba954d80cf11ea4f2d9f to your computer and use it in GitHub Desktop.
Exemplo de como criar uma entidade persistente JPA + Lombok
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Data | |
@Entity | |
public class Contato { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
private String nome; | |
private String email; | |
private String telefone; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment