public class ExportDB {
public static void main(String[] args) {
//读取配置文件hibernate_cfg.xml
Configuration cfg = new Configuration().configure();
//创建SchemaExport对象
SchemaExport export = new SchemaExport(cfg);
//创建数据库表
export.create(true, true);
}
}
ExportDB
使用Hibernate导出数据库表
最新推荐文章于 2024-04-10 09:43:04 发布
695

被折叠的 条评论
为什么被折叠?



