现在的位置: 首页 > 综合 > 正文

hibernate通过实体生成表

2013年09月19日 ⁄ 综合 ⁄ 共 263字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.