hibernate 动态 schema
- 作者: 老六94433851
- 来源: 51数据库
- 2020-12-14
private SchemaExport dbExport;
dbExport = new SchemaExport(sf);//第一次运行时可自动创建表
dbExport.setOutputFile("myschema.sql");
dbExport.create(true, true);
或 new SchemaExport.create(true,true);
不能
dbExport = new SchemaExport(sf);//第一次运行时可自动创建表
dbExport.setOutputFile("myschema.sql");
dbExport.create(true, true);
或 new SchemaExport.create(true,true);
不能
推荐阅读
