exportdb.java

来自「struts在线考试系统. 自己还没看」· Java 代码 · 共 17 行

JAVA
17
字号
package com.lili.exam.util;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class ExportDB {

	public static void main(String[] args) {
		Configuration confg = new Configuration();
		confg.configure("com/lili/exam/pojo/hibernate.cfg.xml");
		
		SchemaExport export = new SchemaExport(confg);
		export.create(true, true);
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?