ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>中文字幕在线看,不卡一区视频,欧美亚洲在线http://www.aygfsteel.com/GavinMiao/category/49317.html我在仰望åQŒjava之上zh-cnFri, 06 Apr 2012 11:22:35 GMTFri, 06 Apr 2012 11:22:35 GMT60延迟加蝲http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371784.htmlGavinMiaoGavinMiaoTue, 13 Mar 2012 02:46:00 GMThttp://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371784.htmlhttp://www.aygfsteel.com/GavinMiao/comments/371784.htmlhttp://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371784.html#Feedback0http://www.aygfsteel.com/GavinMiao/comments/commentRss/371784.htmlhttp://www.aygfsteel.com/GavinMiao/services/trackbacks/371784.html一.实现方式åQ?br />1.*hbm.xml中的class元素的lazy属性设¾|®äØ“trueåQ?br />2.*hbm.xml中的set元素的lazy属性设¾|®äØ“trueåQ?br />3.
@[One|Many]ToOne](fetch=FetchType.LAZY) @LazyToOne(PROXY) @Fetch(SELECT)
@[One|Many]ToOne](fetch=FetchType.EAGER) @LazyToOne(FALSE) @Fetch(JOIN)
@ManyTo[One|Many](fetch=FetchType.LAZY) @LazyCollection(TRUE)@Fetch(SELECT)
@ManyTo[One|Many](fetch=FetchType.EAGER) @LazyCollection(FALSE) @Fetch(JOIN)

参考文章:


GavinMiao 2012-03-13 10:46 发表评论
]]>
hibernate注意ç‚?/title><link>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371778.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Tue, 13 Mar 2012 01:53:00 GMT</pubDate><guid>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371778.html</guid><wfw:comment>http://www.aygfsteel.com/GavinMiao/comments/371778.html</wfw:comment><comments>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371778.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/GavinMiao/comments/commentRss/371778.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/GavinMiao/services/trackbacks/371778.html</trackback:ping><description><![CDATA[    åªæœ‰æ³¨å†Œç”¨æˆ·ç™Õd½•后才能阅读该文ã€?a href='http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371778.html'>阅读全文</a><img src ="http://www.aygfsteel.com/GavinMiao/aggbug/371778.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-03-13 09:53 <a href="http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371778.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>commit()与flush()的区åˆ?/title><link>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371775.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Tue, 13 Mar 2012 01:23:00 GMT</pubDate><guid>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371775.html</guid><wfw:comment>http://www.aygfsteel.com/GavinMiao/comments/371775.html</wfw:comment><comments>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371775.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/GavinMiao/comments/commentRss/371775.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/GavinMiao/services/trackbacks/371775.html</trackback:ping><description><![CDATA[    åªæœ‰æ³¨å†Œç”¨æˆ·ç™Õd½•后才能阅读该文ã€?a href='http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371775.html'>阅读全文</a><img src ="http://www.aygfsteel.com/GavinMiao/aggbug/371775.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-03-13 09:23 <a href="http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371775.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>load与get的区åˆ?/title><link>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371773.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Tue, 13 Mar 2012 01:02:00 GMT</pubDate><guid>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371773.html</guid><wfw:comment>http://www.aygfsteel.com/GavinMiao/comments/371773.html</wfw:comment><comments>http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371773.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/GavinMiao/comments/commentRss/371773.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/GavinMiao/services/trackbacks/371773.html</trackback:ping><description><![CDATA[1.如果数据库没有匹配的记录åQŒloadåQˆï¼‰æ–ÒŽ³•可能会抛出无法恢复的异常åQˆunrecoverable exceptionåQ‰ï¼›get()æ–ÒŽ³•会返回nullåQ?br />2.load可以使用延迟加蝲åQ›get不可以;<br /><br /><br />load与get的工作原理:<br /><div><div>getæ–ÒŽ³•首先查询session¾~“å­˜åQŒæ²¡æœ‰çš„话查询二¾U§ç¼“存,最后查询数据库åQ?/div><div>若设¾|®äº†lazy=trueåQŒloadæ–ÒŽ³•创徏旉™¦–先查询session¾~“å­˜åQŒæ²¡æœ‰å°±åˆ›å¾ä»£ç†åQŒå®žé™…ä‹É用数据时才查询二¾U§ç¼“存和数据库;<br />未设¾|®lazy=trueæ—Óž¼Œä¸Žgetæ–ÒŽ³•相同åQ?br /></div></div>注意åQ?br />到底使用谁:如果不确定是否有匚w…çš„行存在åQŒåº”该ä‹É用getæ–ÒŽ³•ã€?img src ="http://www.aygfsteel.com/GavinMiao/aggbug/371773.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-03-13 09:02 <a href="http://www.aygfsteel.com/GavinMiao/archive/2012/03/13/371773.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>转蝲åQšHibernate Annotation 联合主键三种写法http://www.aygfsteel.com/GavinMiao/archive/2011/10/20/361671.htmlGavinMiaoGavinMiaoThu, 20 Oct 2011 11:21:00 GMThttp://www.aygfsteel.com/GavinMiao/archive/2011/10/20/361671.htmlhttp://www.aygfsteel.com/GavinMiao/comments/361671.htmlhttp://www.aygfsteel.com/GavinMiao/archive/2011/10/20/361671.html#Feedback0http://www.aygfsteel.com/GavinMiao/comments/commentRss/361671.htmlhttp://www.aygfsteel.com/GavinMiao/services/trackbacks/361671.html阅读全文

GavinMiao 2011-10-20 19:21 发表评论
]]>
hibernate面试题汇æ€?/title><link>http://www.aygfsteel.com/GavinMiao/archive/2011/08/28/357436.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Sun, 28 Aug 2011 05:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/GavinMiao/archive/2011/08/28/357436.html</guid><wfw:comment>http://www.aygfsteel.com/GavinMiao/comments/357436.html</wfw:comment><comments>http://www.aygfsteel.com/GavinMiao/archive/2011/08/28/357436.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/GavinMiao/comments/commentRss/357436.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/GavinMiao/services/trackbacks/357436.html</trackback:ping><description><![CDATA[    åªæœ‰æ³¨å†Œç”¨æˆ·ç™Õd½•后才能阅读该文ã€?a href='http://www.aygfsteel.com/GavinMiao/archive/2011/08/28/357436.html'>阅读全文</a><img src ="http://www.aygfsteel.com/GavinMiao/aggbug/357436.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-28 13:37 <a href="http://www.aygfsteel.com/GavinMiao/archive/2011/08/28/357436.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> Ö÷Õ¾Ö©Öë³ØÄ£°å£º <a href="http://" target="_blank">ËþºÓÏØ</a>| <a href="http://" target="_blank">ÒË´¨ÏØ</a>| <a href="http://" target="_blank">ƽ¹ûÏØ</a>| <a href="http://" target="_blank">èë´¨ÏØ</a>| <a href="http://" target="_blank">ÁÙ²×ÊÐ</a>| <a href="http://" target="_blank">¶´¿ÚÏØ</a>| <a href="http://" target="_blank">µ¤°ÍÏØ</a>| <a href="http://" target="_blank">ÄϾ¸ÏØ</a>| <a href="http://" target="_blank">ÍþÔ¶ÏØ</a>| <a href="http://" target="_blank">´óÐËÇø</a>| <a href="http://" target="_blank">·±ÖÅÏØ</a>| <a href="http://" target="_blank">ºâÑôÊÐ</a>| <a href="http://" target="_blank">µÂ±£ÏØ</a>| <a href="http://" target="_blank">Çå·áÏØ</a>| <a href="http://" target="_blank">Â«ÏªÏØ</a>| <a href="http://" target="_blank">ׯºÓÊÐ</a>| <a href="http://" target="_blank">ÇàÖÝÊÐ</a>| <a href="http://" target="_blank">¿µ±£ÏØ</a>| <a href="http://" target="_blank">ʯÃÞÏØ</a>| <a href="http://" target="_blank">³£É½ÏØ</a>| <a href="http://" target="_blank">ÔÀÎ÷ÏØ</a>| <a href="http://" target="_blank">¾üÊÂ</a>| <a href="http://" target="_blank">Ò˱öÏØ</a>| <a href="http://" target="_blank">Èð½ðÊÐ</a>| <a href="http://" target="_blank">¸ßƽÊÐ</a>| <a href="http://" target="_blank">ÎàÖÝÊÐ</a>| <a href="http://" target="_blank">´óÃûÏØ</a>| <a href="http://" target="_blank">ÉêÔúÏØ</a>| <a href="http://" target="_blank">ÕØÔ´ÏØ</a>| <a href="http://" target="_blank">ÑÉêÈ</a>| <a href="http://" target="_blank">ÒæÑôÊÐ</a>| <a href="http://" target="_blank">ÎåÕ¯ÏØ</a>| <a href="http://" target="_blank">Ïã¸ñÀïÀ­ÏØ</a>| <a href="http://" target="_blank">ÉñÅ©¼ÜÁÖÇø</a>| <a href="http://" target="_blank">Ó¢µÂÊÐ</a>| <a href="http://" target="_blank">µ±ÐÛÏØ</a>| <a href="http://" target="_blank">¹®ÁôÏØ</a>| <a href="http://" target="_blank">ÆîÁ¬ÏØ</a>| <a href="http://" target="_blank">¶·ÁùÊÐ</a>| <a href="http://" target="_blank">ÓÀµÇÏØ</a>| <a href="http://" target="_blank">ÎÚÀ­ÌØÇ°Æì</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>