HiberNate 中 conFiguration 和 sessionFactory 的作用
来源:互联网 发布:高频套利ea软件 编辑:程序博客网 时间:2024/06/05 22:52
conFiguration 作用:
Configuration cfg=new Configuration();
cfg.configure();
*cfg是 配置类
* hibernate 会找到hibernate.cfg.xml文件 并且解析 配置文件 和映射文件
sessionFactory作用:
seeionFactory=cfg.buildSessionFactory();
上面的解析好了 存入 sessionFactory
* cfg.buildSessionFactory();* 作用:找到cfg中已解析的映射文件
映射文件是xxx.hbm.xml
0 0
- HiberNate 中 conFiguration 和 sessionFactory 的作用
- Hibernate中SessionFactory的作用
- hibernate的Configuration类和SessionFactory接口
- Hibernate中Configuration的作用
- Hibernate常用的接口和类Configuration&SessionFactory(三)
- day24 ORM Hibernate常用的接口和类(Configuration, SessionFactory , Session, Transaction ,Query) hql
- Hibernate的5个核心接口:Session、SessionFactory、Transaction、Query和Configuration
- 辛星浅析hibernate中的configuration、sessionfactory和session
- Spring中@Configuration和@Bean的作用
- Hibernate之Configuration,SessionFactory,Session
- Hibernate之Configuration,SessionFactory,Session
- Hibernate之Configuration,SessionFactory,Session
- Hibernate之Configuration,SessionFactory,Session
- Hibernate之Configuration,SessionFactory,Session
- Hibernate学习---Configuration,Session,SessionFactory
- Hibernate 中 SessionFactory的创建
- hibernate中SessionFactory的创建
- Hibernate 中 的 SessionFactory 接口
- 成功的背后!(给所有IT人)
- Velocity.js错误:Velocity is not defined
- VS2005 创建的ATL工程无法注册组件
- 如何在Myeclipse中配置tomcat服务器
- 链表翻转
- HiberNate 中 conFiguration 和 sessionFactory 的作用
- Codevs 1201 题解
- UVA - 10123 No Tipping 剪枝+dfs
- 55555555555
- c++史前时代与带类的C
- 解析PHP程序员需要掌握的必备技能
- js中一些操作DOM的属性和方法
- 菜鸟学Java(二十二)——重新认识泛型
- jsp 两个网页中直接传入数值 用param接受