输入banner图图片脚本导航/分类

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

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

 

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

标签: