1. 程式人生 > >基於mysql資料庫的Hibernate3的環境搭建

基於mysql資料庫的Hibernate3的環境搭建

  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;
}
  
 }