- 1
- 0
- 约9.55千字
- 约 7页
- 2017-05-22 发布于湖北
- 举报
三大框架知识
三大框架原理及为什么要用
?(2013-10-15 20:20:09)
HYPERLINK javascript:; 转载▼
标签:?
HYPERLINK /?c=blogq=itby=tag \t _blank it分类:? HYPERLINK /s/articlelist_1617855862_2_1.html \t _blank ssh HYPERLINK /javaNewegg/archive/2011/08/28/2156521.html Hibernate工作原理及为什么要用?
原理:1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件2.由hibernate.cfg.xml中的读取并解析映射信息3.通过config.buildSessionFactory();//创建SessionFactory4.sessionFactory.openSession();//打开Sesssion5.session.beginTransaction();//创建事务Transation6.persistent operate持久化操作7.session.getTransaction().commit();//提交事务8.关闭Session9.关闭SesstionFacto
原创力文档

文档评论(0)