You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
1.5 KiB
95 lines
1.5 KiB
package model;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* TUser entity. @author MyEclipse Persistence Tools
|
|
*/
|
|
|
|
public class User implements java.io.Serializable {
|
|
|
|
// Fields
|
|
|
|
private Integer id;
|
|
private String username;
|
|
private Integer sex;
|
|
private String phone;
|
|
private String password;
|
|
private String qusetion;
|
|
private String answer;
|
|
|
|
// Constructors
|
|
|
|
/** default constructor */
|
|
public User() {
|
|
}
|
|
|
|
/** full constructor */
|
|
public User(String username, String password,String qusetion, String answer) {
|
|
this.username = username;
|
|
this.password = password;
|
|
this.qusetion = qusetion;
|
|
this.answer = answer;
|
|
}
|
|
|
|
// Property accessors
|
|
|
|
public Integer getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return this.username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public Integer getSex() {
|
|
return this.sex;
|
|
}
|
|
|
|
public void setSex(Integer sex) {
|
|
this.sex = sex;
|
|
}
|
|
|
|
public String getPhone() {
|
|
return this.phone;
|
|
}
|
|
|
|
public void setPhone(String phone) {
|
|
this.phone = phone;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return this.password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public String getQusetion() {
|
|
return this.qusetion;
|
|
}
|
|
|
|
public void setQusetion(String qusetion) {
|
|
this.qusetion = qusetion;
|
|
}
|
|
|
|
public String getAnswer() {
|
|
return this.answer;
|
|
}
|
|
|
|
public void setAnswer(String answer) {
|
|
this.answer = answer;
|
|
}
|
|
|
|
|
|
} |