Created
December 28, 2019 17:44
-
-
Save kubawieczorek/5bf09f0bf53b104a4b4e0ce006f60bc0 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 = "client") | |
public class Client { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Integer clientId; | |
@Column(name = "name", nullable = false) | |
private String name; | |
@Column(name = "email", nullable = false) | |
private String email; | |
public Client() { | |
} | |
public Client(String name, String email) { | |
this.name = name; | |
this.email = email; | |
} | |
//Getters and setters... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment