exportdb.java
来自「hibernate一对多双向关联映射 一对多双向关联映射的方法 在"一」· Java 代码 · 共 15 行
JAVA
15 行
package com.xt.hibernate;
import junit.framework.TestCase;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class exportDB extends TestCase{
public void testExport(){
Configuration cfg = new Configuration().configure();
SchemaExport export = new SchemaExport(cfg);
export.create(true, true);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?