Created
November 3, 2021 11:28
-
-
Save alexchirea/4803480e56c8e094eb3458341e85168f to your computer and use it in GitHub Desktop.
This file contains 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
@Entity | |
public class Person { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
@NotEmpty | |
@Size(min = 5) | |
private String fullName; | |
@NotEmpty | |
private String email; | |
@NotNull | |
@Min(value = 18) | |
private Integer age; | |
// Getters and Setters | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment