ï»??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>