首页>代码>三大框架之hibernate入门学习教程增删改查>/hibernate/hibernate_1/src/com/qm/entity/Student.java
package com.qm.entity;
/**
 * 学生实体
 * @author Administrator
 *
 */
public class Student {
	//学生id
	private int id;
	//学生姓名
	private String name;
	//学生密码
	private String password;
	//学生身高
	private int hight;
	//学生性别
	private int sex;
	
	/**
	 * 构造函数(不带参数)
	 */
	public Student() {
		
	}
	/**
	 * 构造函数(带参数)
	 * @param name
	 * @param password
	 * @param hight
	 * @param sex
	 */
	public Student(String name, String password, int hight, int sex) {
		super();
		this.name = name;
		this.password = password;
		this.hight = hight;
		this.sex = sex;
	}

	/**
	 * 构造函数(带参数)
	 * @param id
	 * @param name
	 * @param password
	 * @param hight
	 * @param sex
	 */
	public Student(int id, String name, String password, int hight, int sex) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.hight = hight;
		this.sex = sex;
	}
	
	//==============get set方法===================
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public int getHight() {
		return hight;
	}
	
	public void setHight(int hight) {
		this.hight = hight;
	}
	
	public int getSex() {
		return sex;
	}
	
	public void setSex(int sex) {
		this.sex = sex;
	}
	
}
最近下载更多
周敏国  LV9 2022年10月22日
丶右转  LV11 2020年11月18日
名字随便的啦啦  LV7 2020年10月23日
林志勇  LV10 2020年4月28日
a837535114  LV10 2020年2月5日
段朝洪  LV15 2019年11月25日
我的名字是凑得  LV8 2018年12月23日
973445486  LV6 2018年12月12日
nanjing2017  LV15 2018年11月20日
hhit_zh  LV6 2018年10月11日
最近浏览更多
liang85  LV1 2023年6月30日
女王不该在山炮村养花  LV8 2023年4月16日
彩色天空  LV5 2023年4月2日
周敏国  LV9 2022年10月22日
微信网友_6186189978783744 2022年10月22日
暂无贡献等级
cqbscxh  LV11 2022年9月19日
wubinbin  LV11 2021年12月18日
c123456x  LV2 2021年12月9日
Ye55555 2021年12月6日
暂无贡献等级
lndulge  LV6 2021年6月29日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友