exportdb

package com.wuyu.xsssxt.util;

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

public class ExportDB {

/**
* @param args
*/
public static void main(String[] args) {
// 读取hibernate.cfg.xml配置文件
Configuration cfg = new Configuration()
.configure("hibernate_c3po.cfg.xml");
SchemaExport export = new SchemaExport(cfg);
export.create(true, true);
}

}

你可能感兴趣的:(Hibernate,xml)