当前位置:Gxlcms > 数据库问题 > hibernate笔记--通过SchemaExport生成数据库表

hibernate笔记--通过SchemaExport生成数据库表

时间:2021-07-01 10:21:17 帮助过:67人阅读

public void testCreateDB(){
        Configuration cfg = new Configuration().configure();
        SchemaExport se=new SchemaExport(cfg);
        //第一个参数是否生成ddl脚本 第二个参数是否执行到数据库
        se.create(true,true);
}

 

hibernate笔记--通过SchemaExport生成数据库表

标签:

人气教程排行