好贷网好贷款

the design principles and code analysis of hibernate lazy loading

发布时间:2016-12-4 12:05:23 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"the design principles and code analysis of hibernate lazy loading",主要涉及到the design principles and code analysis of hibernate lazy loading方面的内容,对于the design principles and code analysis of hibernate lazy loading感兴趣的同学可以参考一下。

as we all know,Hibernate is already one of the most popular ORM frameworks. and its performance is key highlight .when we use ORM framework,there will be a lot of convertions between  objects and database tables.if it can be handled well,it will make this framework extremely cumbersome. hibernate provides  many fabulous functionalities .or example  lazy loading. an domain object associates collections or another domain object, when initialition ,domain object will default not load collections and object entity. only when on demands.so it can impove performance. what are the design principles of lazy loading? well,proxy pattern is the core principle. for colletion mapping,like set,map ,list etc ,in hibernate codes,there are PersistentSet,PersistentMap,PersistentList classes to implement these interfaces.for associated collection,Hiberate will using CLGIB,JAVAASSIST create an proxy  object to represent collection,it actually not load during the creation of the object,only needs it load them.

上一篇:A+B for Input-Output Practice (I)
下一篇:Ufw使用指南

相关文章

相关评论