hibernate动态生成数据库脚本

Configuration cfg = new Configuration().configure();
   
SchemaExport export = new SchemaExport(cfg);
export.setOutputFile("d:/cxsql.txt");       
export.create(true, true);

猜你喜欢

转载自zym820910.iteye.com/blog/1665214
今日推荐