亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

根據(jù)Hibernte的cfg文件生成sql文件

 更新時(shí)間:2009年03月26日 11:33:13   作者:  
今天嘗試用Hibernate的配置文件生成數(shù)據(jù)庫腳本,結(jié)果居然成功了,代碼很簡單
復(fù)制代碼 代碼如下:

public void exportHibernteToSQL(){
Configuration cfg=new Configuration().configure("/hibernate.cfg.xml");
SchemaExport schemaExport = new SchemaExport(cfg);
schemaExport.setOutputFile("d:/mysql_sql.sql");
schemaExport.create(true, false);
}

注意:Hibernate的配置文件是什么數(shù)據(jù)庫方言和驅(qū)動(dòng),將生成什么數(shù)據(jù)庫腳本。

相關(guān)文章

最新評(píng)論