Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created April 4, 2018 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tassioauad/daf4f2a72bd93d898f0f4ae601d3a01c to your computer and use it in GitHub Desktop.
Save tassioauad/daf4f2a72bd93d898f0f4ae601d3a01c to your computer and use it in GitHub Desktop.
@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