基於mysql資料庫的Hibernate3的環境搭建
阿新 • • 發佈:2019-01-10
package com.bean;
import java.io.Serializable;
public class Student implements Serializable {
private String stuNo;
private String stuName;
private String sex;
public Student()
{
}
public Student(String stuNo, String stuName) {
this.stuNo = stuNo;
this.stuName = stuName;
}
public Student(String stuNo, String stuName, String sex) {
this.stuNo = stuNo;
this.stuName = stuName;
this.sex = sex;
}
public String getStuNo() {
return stuNo;
}
public void setStuNo(String stuNo) {
this.stuNo = stuNo;
}
public String getStuName() {
return stuName;
}
public void setStuName(String stuName) {
this.stuName = stuName;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
}
import java.io.Serializable;
public class Student implements Serializable {
private String stuNo;
private String stuName;
private String sex;
public Student()
{
}
public Student(String stuNo, String stuName) {
this.stuNo = stuNo;
this.stuName = stuName;
}
public Student(String stuNo, String stuName, String sex) {
this.stuNo = stuNo;
this.stuName = stuName;
this.sex = sex;
}
public String getStuNo() {
return stuNo;
}
public void setStuNo(String stuNo) {
this.stuNo = stuNo;
}
public String getStuName() {
return stuName;
}
public void setStuName(String stuName) {
this.stuName = stuName;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
}