hibernate操做数据库

利用hibernate操做数据库的四个步骤: 1.第一步:读取hiber.cfg.xml映射文件 web Configuration cfg = new Configuration().configure(); 2.第二步:创建SessionFactorysql SessionFactory factory = cfg.bulidSessionFactory(); 3.第三步:从SessionFa
相关文章
相关标签/搜索