package com.ufinity.hibernate.util;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

/** *//**
*
* @author skyqiang
*
*/ 
public class ExportDB ...{ 
public static void main(String[] args) ...{
//read configuration file
Configuration config = new Configuration();
//create SchemaExport object
SchemaExport export = new SchemaExport(config);
//create table of database
export.create(true, true);
}
} 
1383




被折叠的 条评论
为什么被折叠?



