?? exportdb.java
字號(hào):
package com.bjsxt.hibernate;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class ExportDB {
public static void main(String[] args) {
//讀取配置文件
Configuration cfg = new Configuration().configure();
//創(chuàng)建SchemaExport對(duì)象
SchemaExport export = new SchemaExport(cfg);
//創(chuàng)建數(shù)據(jù)庫(kù)表
export.create(true,true);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -