1. 程式人生 > >實體類entity層

實體類entity層

package com.wh.entity;

import java.util.Date;

public class User {
private String username;
private String password;
private String name;
private String gender;
private int age;
private String address;
private Date regdate;

public User() {
	super();
}

public User(String username, String password) {
	super();
	this.username = username;
	this.password = password;
}

public User(String username, String password, String name, String gender, int age, String address, Date regdate2) {
	super();
	this.username = username;
	this.password = password;
	this.name = name;
	this.gender = gender;
	this.age = age;
	this.address = address;
	this.regdate = regdate2;
}

public String getUsername() {
	return username;
}

public void setUsername(String username) {
	this.username = username;
}

public String getPassword() {
	return password;
}

public void setPassword(String password) {
	this.password = password;
}

public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}

public String getGender() {
	return gender;
}

public void setGender(String gender) {
	this.gender = gender;
}

public int getAge() {
	return age;
}

public void setAge(int age) {
	this.age = age;
}

public String getAddress() {
	return address;
}

public void setAddress(String address) {
	this.address = address;
}

public Date getRegdate() {
	return regdate;
}

public void setRegdate(Date regdate) {
	this.regdate = regdate;
}

@Override
public String toString() {
	return "User [username=" + username + ", password=" + password + ", name=" + name + ", gender=" + gender
			+ ", age=" + age + ", address=" + address + ", regdate=" + regdate + "]";
}

}