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