帮我用java写个实体类啊
发布网友
发布时间:2022-04-26 01:56
我来回答
共2个回答
热心网友
时间:2022-05-03 10:56
import java.util.Date;
public class PersonalMember {
private int id;
private String name;
private String password;
private int gender;
private String email;
private String telephone;
private String fax;
private String postalCode ;
private Date lastLoginTime;
private Date registerDate;
public PersonalMember()
{
}
public int getid()
{return id;}
public String getname()
{return name;}
public String getpassword()
{return password;}
public int getgender()
{return gender;}
public String getemail()
{return email;}
public String gettelephone()
{return telephone;}
public String getfax()
{return fax;}
public String getpostalCode()
{return postalCode;}
public Date getlastLoginTime()
{return registerDate;}
public Date getregisterDate()
{return registerDate;}
public void setid(int id)
{this.id=id;}
public void setname(String name)
{this.name =name;}
public void setpassword(String password)
{this.password=password;}
public void setgender(int gender)
{this.gender =gender;}
public void setemail(String email)
{this.email=email;}
public void settelephone(String telephone)
{this.telephone=telephone;}
public void setfax(String fax)
{this.fax=fax;}
public void setpostalCode(String postalCode)
{this.postalCode=postalCode;}
public void setlastLoginTime(Date registerDate)
{this.registerDate=registerDate;}
public void setregisterDate(Date registerDate)
{this.registerDate=registerDate;}
}
热心网友
时间:2022-05-03 12:14
不知道帮你写好了有什么用,唉,你还是什么都不懂