⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exporttodb.java

📁 代码是hibernate对树的操作
💻 JAVA
字号:
package com.bjsxt.hibernate;

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

public class ExportToDB {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		// 读取配置文件
		Configuration cfg = new Configuration().configure();

		// 创建SchemaExport对象
		SchemaExport export = new SchemaExport(cfg);

		// 创建数据库表
		export.create(true, true);

	}

}

⌨️ 快捷键说明

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