📄 export.java
字号:
package page.test.client;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class Export {
public static void main(String[] args) {
// 读取Hibernate.cfg.xml文件
Configuration cfg = new Configuration().configure();
// 映射为表
SchemaExport export = new SchemaExport(cfg);
// 创建
export.create(true, true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -