- public class ExportDB {
- public static void main(String[] args) {
- //读取hibernate.cfg.xml文件
- Configuration cfg=new Configuration().configure();
- SchemaExport export=new SchemaExport(cfg);
- export.create(true, true);
- }
- }
hibernate工具箱—根据映射文件自动建表
最新推荐文章于 2018-08-31 11:26:11 发布