Posted on 2009-02-03 17:12
MyYate 閱讀(274)
評(píng)論(0) 編輯 收藏 所屬分類:
Hibernate
動(dòng)態(tài)創(chuàng)建表:
public static void createTable(){
Configuration conf = new Configuration().add(
).configure();
SchemaExport dbExport = new SchemaExport(conf);
dbExport.setOutputFile("xxx.log"); //生成的腳本輸出到哪里
dbExport.create(true, true);
}