hibernate
This commit is contained in:
1 parent
c6f7e13b5d
commit
24c7a287c6
16 files changed
+281
-75
No files matched your search
@@ -0,0 +1,62 @@
|
||||
package application.model;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
@Entity(name = "account")
|
||||
public class User {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@Basic
|
||||
private String firstName;
|
||||
|
||||
@Basic
|
||||
private String lastName;
|
||||
|
||||
@Basic
|
||||
private String email;
|
||||
|
||||
@Basic
|
||||
private String role;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String name) {
|
||||
this.firstName = name;
|
||||
}
|
||||
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user