Hibernate整合Spring后,如何使用SchemaExport生成数据库表
一.Hibernate原生状态
Configuration cfg = new Configuration().configure();
SchemaExport export = new SchemaExport(cfg);
export.create(true, true);
二.Hibernate整合Spring
1.使用hibernate
转载
2016-07-06 15:01:48 ·
647 阅读 ·
0 评论