📄 userinfo.java
字号:
package bean;
import java.util.Set;
import java.util.HashSet;
/**
* @author Administrator
*/
public class userInfo extends info {
/**
* @uml.property name="age"
*/
private int age; //用户年龄
/**
* @uml.property name="sex"
*/
private String sex; //用户性别
/**
* @uml.property name="phone"
*/
private String phone; //电话
/**
* @uml.property name="address"
*/
private String address; //地址
/**
* @uml.property name="remark"
*/
private String remark; //备注
private String password; //密码
private Set<role> rol = new HashSet<role>();//与角色为多对多关系
public userInfo() {}
/**
* @param age The age to set.
* @uml.property name="age"
*/
public void setAge(int age) {
this.age = age;
}
/**
* @return Returns the age.
* @uml.property name="age"
*/
public int getAge() {
return this.age;
}
/**
* @param sex The sex to set.
* @uml.property name="sex"
*/
public void setSex(String sex) {
this.sex = sex;
}
/**
* @return Returns the sex.
* @uml.property name="sex"
*/
public String getSex() {
return this.sex;
}
/**
* @param phone The phone to set.
* @uml.property name="phone"
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
* @return Returns the phone.
* @uml.property name="phone"
*/
public String getPhone() {
return this.phone;
}
/**
* @param address The address to set.
* @uml.property name="address"
*/
public void setAddress(String address) {
this.address = address;
}
/**
* @return Returns the address.
* @uml.property name="address"
*/
public String getAddress() {
return this.address;
}
/**
* @param password The password to set.
* @uml.property name="password"
*/
public void setPassword(String password) {
this.password = password;
}
/**
* @return Returns the password.
* @uml.property name="password"
*/
public String getPassword() {
return this.password;
}
/**
* @param remark The remark to set.
* @uml.property name="remark"
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* @return Returns the remark.
* @uml.property name="remark"
*/
public String getRemark() {
return this.remark;
}
/**
* @param rol The rol to set.
* @uml.property name="rol"
*/
public void setRol(Set<role> rol) {
this.rol = rol;
}
/**
* @return Returns the rol.
* @uml.property name="rol"
*/
public Set<role> getRol() {
return this.rol;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -