91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-18
  • 語言: 數據庫
  • 標簽: hibernate??

資源簡介

用myeclipse作的第一個hibernate連接mysql數據庫的例子. 先在mysql數據庫中創建好課程表,建表的命令如下: create table kcb(kch char(10) primary key,kcm char(20),kxxq int,xs int,xf int). 代碼主要在src文件夾下。

資源截圖

代碼片段和文件信息

package?org.model;

/**
?*?Kcb?entity.?@author?MyEclipse?Persistence?Tools
?*/

public?class?Kcb?implements?java.io.Serializable?{

//?Fields

private?String?kch;
private?String?kcm;
private?Integer?kxxq;
private?Integer?xs;
private?Integer?xf;

//?Constructors

/**?default?constructor?*/
public?Kcb()?{
}

/**?minimal?constructor?*/
public?Kcb(String?kch?String?kcm)?{
this.kch?=?kch;
this.kcm?=?kcm;
}

/**?full?constructor?*/
public?Kcb(String?kch?String?kcm?Integer?kxxq?Integer?xs?Integer?xf)?{
this.kch?=?kch;
this.kcm?=?kcm;
this.kxxq?=?kxxq;
this.xs?=?xs;
this.xf?=?xf;
}

//?Property?accessors

public?String?getKch()?{
return?this.kch;
}

public?void?setKch(String?kch)?{
this.kch?=?kch;
}

public?String?getKcm()?{
return?this.kcm;
}

public?void?setKcm(String?kcm)?{
this.kcm?=?kcm;
}

public?Integer?getKxxq()?{
return?this.kxxq;
}

public?void?setKxxq(Integer?kxxq)?{
this.kxxq?=?kxxq;
}

public?Integer?getXs()?{
return?this.xs;
}

public?void?setXs(Integer?xs)?{
this.xs?=?xs;
}

public?Integer?getXf()?{
return?this.xf;
}

public?void?setXf(Integer?xf)?{
this.xf?=?xf;
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????874??2012-10-01?12:16??src\hibernate.cfg.xml

?????文件???????1006??2012-10-01?12:16??src\org\model\Kcb.hbm.xml

?????文件???????1167??2012-10-01?12:16??src\org\model\Kcb.java

?????文件???????3209??2012-10-01?11:56??src\org\util\HibernateSessionFactory.java

?????文件????????841??2012-10-05?21:05??src\test\Test.java

?????目錄??????????0??2012-10-06?10:58??src\org\model

?????目錄??????????0??2012-10-01?11:56??src\org\util

?????目錄??????????0??2012-10-01?12:06??src\org

?????目錄??????????0??2012-10-01?12:23??src\test

?????目錄??????????0??2012-10-01?12:22??src

-----------?---------??----------?-----??----

?????????????????7097????????????????????10


評論

共有 條評論