摘要: 在比较openSession和getCurrentSession这两个方法之前,我们先认识一下这两个方法。 在进行配置信息管理时,我们一般进行一下简单步骤: Configuration cfg = new Configuration(); // 获得配置信息对象 SessionFactory sf 阅读全文
posted @ 2017-05-10 15:08 戒。 阅读(724) 评论(0) 推荐(0) 编辑
摘要: create table remark_info(qq text(122),role text,index1 text,phone text,primary key(qq)所谓ModelDriven,意思是直接把实体类当成页面数据的收集对象。比如,有实体类User如下:package cn.com. 阅读全文
posted @ 2017-05-10 14:07 戒。 阅读(302) 评论(0) 推荐(0) 编辑