hibernate通过对象-关系映射文件*.hbm.xml创建数据库教程

Jhonse技术 2010-06-10

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class ExportDB {
public static void main(String[] args) {
Configuration cfg = new Configuration().configure(); 
SchemaExport export = new SchemaExport(cfg); 
export.create(true, true);
}
}

相关推荐

LetonLIU / 0评论 2020-05-29
东方咖啡屋 / 0评论 2020-01-06