org.hibernate.tool.hbm2ddl.SchemaExport;    
   
public class ExportToDB {    
   
    
/**   
     * 
@param args   
     
*/   
    
public static void main(String[] args) throws Exception{    
        
//读取配置文件    
        Configuration cfg = new Configuration().configure();    
            
        
//创建SchemaExport对象    
        SchemaExport export = new SchemaExport(cfg);    
            
        
//创建数据库表    
        export.create(true,true);    
   
    }    
}   

相关文章:

  • 2022-12-23
  • 2022-02-18
  • 2021-05-10
  • 2021-06-06
  • 2022-01-16
  • 2021-10-03
猜你喜欢
  • 2022-12-23
  • 2021-05-28
  • 2021-10-21
  • 2022-12-23
  • 2021-09-24
  • 2021-12-11
相关资源
相似解决方案