Skip to content

Instantly share code, notes, and snippets.

@kubawieczorek
Created December 28, 2019 17:44
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 kubawieczorek/5bf09f0bf53b104a4b4e0ce006f60bc0 to your computer and use it in GitHub Desktop.
Save kubawieczorek/5bf09f0bf53b104a4b4e0ce006f60bc0 to your computer and use it in GitHub Desktop.
@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