ITeye博客

hibernate通过对象-关系映射文件*.hbm.xml创建数据库教程

devil13th · 2010-06-10 13:06 · hibernate · 企业架构 · XML · Hibernate · Markdown

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class ExportDB {
public static void main(String[] args) {
Configuration cfg = new Configuration().configure(); 
SchemaExport export = new SchemaExport(cfg); 
export.create(true, true);
}
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。