ITeye博客

利用hibernate配置文件成映射数据库表

linlargy · 2013-04-15 22:18 · java框架技术 · java框架组件应用 · 行业应用 · Markdown

public class AutoCreateTable {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Configuration cfg = new Configuration().configure();
		SchemaExport sce =  new SchemaExport(cfg);
		sce.create(true, true);
	}

}

评论(0)

暂无评论。

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