2008-05-14
Hibernate_ExportDB
关键字: jdbc
Auto Create Table Code:
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);
}
}
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则







评论排行榜