Created
April 4, 2018 02:18
-
-
Save tassioauad/daf4f2a72bd93d898f0f4ae601d3a01c 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 | |
@Table(name = "person") | |
public class Person { | |
@Id | |
@Column(name = "id", nullable = false) | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Long id; | |
@Column(name = "name", nullable = false, length = 100) | |
private String name; | |
@Column(name = "email", nullable = false) | |
private String email; | |
@Column(name = "document_nr", nullable = false, length = 15) | |
private String documentNr; | |
//.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment