【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-AbstractStudent.java,希望本篇文章对您学习有所帮助。
package com.hbp.chapter11.model;
/**
* AbstractStudent generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractStudent implements java.io.Serializable {
// Fields
private Integer id;
private String stuno;
private String stuname;
private String sex;
private Integer clsid;
// Constructors
/** default constructor */
public AbstractStudent() {
}
/** minimal constructor */
public AbstractStudent(String stuno) {
this.stuno = stuno;
}
/** full constructor */
public AbstractStudent(String stuno, String stuname, String sex, Integer clsid) {
this.stuno = stuno;
this.stuname = stuname;
this.sex = sex;
this.clsid = clsid;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getStuno() {
return this.stuno;
}
public void setStuno(String stuno) {
this.stuno = stuno;
}
public String getStuname() {
return this.stuname;
}
public void setStuname(String stuname) {
this.stuname = stuname;
}
public String getSex() {
return this.sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public Integer getClsid() {
return this.clsid;
}
public void setClsid(Integer clsno) {
this.clsid = clsno;
}
}