![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
iq105
JAVA软件开发
展开
-
Hibernate的一些关键知识
================一些hibernate资料============================ org.hibernate.cfg.Configuration类的作用: 读取hibernate配置文件(hibernate.cfg.xml或hiberante.properties)的. new Configuration()默认是读取hibernate.properties原创 2014-05-04 20:34:22 · 581 阅读 · 0 评论 -
hibernate的一些优化策略
Robbin总结的Hibernate性能优化要点(一): 1.尽量使用many-to-one,避免使用单项one-to-many 2.灵活使用单向one-to-many 3.不用一对一,使用多对一代替一对一 4.配置对象缓存,不使用集合缓存 5.一对多使用Bag 多对一使用Set 6.继承使用显示多态 HQL:from object polymorphism="exlicit" 避转载 2014-05-04 20:43:54 · 2059 阅读 · 0 评论