日期:2014-05-16 浏览次数:20576 次
package util;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class AutoCreateTable {
??? public static void main(String[] args){
??? ??? Configuration cfg = new Configuration().configure();
??? ??? SchemaExport se = new SchemaExport(cfg);
??? ??? se.create(true, true);
??? }
}