JAVA-117 Standardize spring-boot-modules/spring-boot

This commit is contained in:
mikr
2020-04-04 20:24:48 +02:00
parent 3cca8ab6c0
commit cc11987f59
49 changed files with 93 additions and 91 deletions

View File

@@ -0,0 +1,49 @@
package com.baeldung.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "users")
public class User {
@Id
@GeneratedValue
private Integer id;
private String name;
private Integer status;
public User() {
}
public User(String name, Integer status) {
this.name = name;
this.status = status;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
}