BAEL-4842 - Use React and Spring Boot to Build a Simple CRUD App

Initial source module for the article
This commit is contained in:
Sallo Szrajbman
2021-03-28 17:00:33 +01:00
parent d1d6cafac1
commit 6a82efdd39
30 changed files with 17577 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
package com.baeldung.springbootreact.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "client")
public class Client {
@Id
@GeneratedValue
private Long id;
private String name;
private String email;
public Client() {
}
public Client(String name, String email) {
this.name = name;
this.email = email;
}
public Client(Long id, String name, String email) {
this.id = id;
this.name = name;
this.email = email;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}