forked from admin/struts2-demo
55 lines
1013 B
Java
55 lines
1013 B
Java
package com.demo.model;
|
|
|
|
public class User {
|
|
private Long id;
|
|
private String username;
|
|
private String email;
|
|
private String phone;
|
|
|
|
public User() {
|
|
}
|
|
|
|
public User(Long id, String username, String email) {
|
|
this(id, username, email, null);
|
|
}
|
|
|
|
public User(Long id, String username, String email, String phone) {
|
|
this.id = id;
|
|
this.username = username;
|
|
this.email = email;
|
|
this.phone = phone;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public String getPhone() {
|
|
return phone;
|
|
}
|
|
|
|
public void setPhone(String phone) {
|
|
this.phone = phone;
|
|
}
|
|
}
|