锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲综合一区柠檬导航,www国产亚洲精品久久久,亚洲人成依人成综合网http://www.tkk7.com/AstroQi/category/42391.htmlI'm Astro Qi. If call me, please send email to closoastroqi@126.comzh-cnFri, 22 Apr 2011 08:26:57 GMTFri, 22 Apr 2011 08:26:57 GMT60hibernate闆嗗悎鏄犲皠cascade鍜宨nverse璇﹁Вhttp://www.tkk7.com/AstroQi/archive/2011/04/22/348779.htmlAstro.QiAstro.QiFri, 22 Apr 2011 02:51:00 GMThttp://www.tkk7.com/AstroQi/archive/2011/04/22/348779.htmlhttp://www.tkk7.com/AstroQi/comments/348779.htmlhttp://www.tkk7.com/AstroQi/archive/2011/04/22/348779.html#Feedback0http://www.tkk7.com/AstroQi/comments/commentRss/348779.htmlhttp://www.tkk7.com/AstroQi/services/trackbacks/348779.html闃呰鍏ㄦ枃

Astro.Qi 2011-04-22 10:51 鍙戣〃璇勮
]]>
Hibernate涓璫ascade涓巌nverse灞炴ц瑙?/title><link>http://www.tkk7.com/AstroQi/archive/2011/04/22/348777.html</link><dc:creator>Astro.Qi</dc:creator><author>Astro.Qi</author><pubDate>Fri, 22 Apr 2011 02:47:00 GMT</pubDate><guid>http://www.tkk7.com/AstroQi/archive/2011/04/22/348777.html</guid><wfw:comment>http://www.tkk7.com/AstroQi/comments/348777.html</wfw:comment><comments>http://www.tkk7.com/AstroQi/archive/2011/04/22/348777.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/AstroQi/comments/commentRss/348777.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/AstroQi/services/trackbacks/348777.html</trackback:ping><description><![CDATA[<p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鍦ㄥ涔燞ibernate鐨勮繃紼嬩腑鏈涓嶅ソ鐞嗚В鐨勫氨鏄繖涓や釜灞炴т簡銆?br style="line-height: normal; " /> (鎴戝綋鍒濆涔燞ibernate鐨勬椂鍊欙紝鍙戠幇緗戜笂浠嬬粛榪欎袱涓睘鎬х殑鏂囩珷鍊掓槸涓嶅皯錛屼絾鏄紝灞呯劧鏈夊ソ澶氶兘鏄漿甯栥傘傘傝繕鏈夌殑灝辨槸 鐓т功鎼瑍~-_-!!!)銆傘傘?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鎹釜渚嬪瓙錛氫功涓婅inverse=false鏃訛紝鐢變富鎺ф柟緇存寔鍏崇郴銆傘傘?br style="line-height: normal; " /> 鐢變簬鎴戜篃鏄垵瀛﹁呫傘傘傚啀鍔犱笂璇枃姘村鉤鍋忎綆銆傘傘備笉鐞嗚В“緇存寔鍏崇郴鏄暐鎰忔?#8221;鍥</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鎻愮ず錛?br style="line-height: normal; " /> (1)濡傛灉錛氭偍涓嶄簡瑙ibernate鐨刼ne-to-many鎴杕any-to-one鐨勬蹇點?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">(2)濡傛灉錛氫綘涓嶄簡瑙ibernate鐨?#8220;鑷敱鎬?#8221;“鎸佷箙鎬?#8221;“娓哥鎬?#8221;鐨勬蹇點?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">(3)濡傛灉錛氭偍涓嶄簡瑙ibernate涓殑“鑴忔暟鎹?#8221;鐨勬蹇點?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">(4)濡傛灉錛氭偍瀵笻ibernate涓璖ession緙撳瓨錛屾病鏈夊垵姝ヤ簡瑙g殑璇濄?br style="line-height: normal; " /> (鍦℉ibernate涓皟鐢╯ave榪涜瀛樺偍鏁版嵁鐨勬椂鍊?騫朵笉鏄┈涓婂氨瀵規暟鎹簱榪涜insert鎿嶄綔錛岃屾槸浼氬皢鍏?#8220;鏁版嵁瀵硅薄(vo)”綰沖叆Hibernate鐨凷ession緙撳瓨銆?</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鍦ㄤ笂闈㈢殑4鏉℃彁紺轟腑錛屽鏋滄偍瀵瑰叾涓殑鏌愪竴鏉★紝涓嶆槸寰堟竻妤氱殑璇濄傚笇鏈涜鍏堜簡瑙f湁鍏崇煡璇嗐?br style="line-height: normal; " /> 鍚﹀垯錛屽彲鑳芥偍灝?“鏃犳硶鎴栧緢闅?#8221;鐞嗚В cascade 鎴?inverse 榪?涓睘鎬с?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">棣栫浉錛宑ascade 涓?inverse 榪欎袱涓睘鎬э紝鍏跺疄鏄畬鍏ㄤ笉鍚岀殑涓や釜涓滆タ錛屾兂瑕佷簡瑙d粬浠悇鑷殑“鐢ㄩ斾笌鍖哄埆”錛岃瑙佸涓嬩粙緇嶏細</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">榪欓噷鏈変袱涓〃:</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">錛?錛塩lass   (鐝駭琛?<br style="line-height: normal; " /> 鐩稿簲瀛楁錛?br style="line-height: normal; " /> cid    varchar(32) 涓婚敭 not-null (鐝駭id)<br style="line-height: normal; " /> cname varchar(16)      not-null (鐝駭鍚嶇О)   <br style="line-height: normal; " /> <br style="line-height: normal; " /> 錛?錛塻tudent (瀛︾敓琛?<br style="line-height: normal; " /> 鐩稿簲瀛楁錛?br style="line-height: normal; " /> sid    varchar(32) 涓婚敭 not-null (瀛︾敓id)<br style="line-height: normal; " /> sname varchar(16)      not-null (瀛︾敓濮撳悕)<br style="line-height: normal; " /> class_id varchar(32)   not-null (瀛︾敓鎵灞炵彮綰?</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">涓涓彮綰?class)瀵瑰簲澶氫釜瀛︾敓(student)錛屾墍浠ョ彮綰ц〃(class)灝辨槸“one-to-many”绔?br style="line-height: normal; " /> 鍙嶄箣student灝辨槸many-to-one</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">//--------Class綾葷殑浠g爜--------<br style="line-height: normal; " /> public class Class implements.....<br style="line-height: normal; " /> {<br style="line-height: normal; " /> private cId = "";<br style="line-height: normal; " /> private cName = "";<br style="line-height: normal; " /> private students = java.util.HashMap();<br style="line-height: normal; " /> // 鐪佺暐瀵瑰簲鐨?geter setter<br style="line-height: normal; " /> }<br style="line-height: normal; " /> //--------Class.hbm.xml--------<br style="line-height: normal; " /> <hibernate-mapping><br style="line-height: normal; " /> <class name="lcx.vo.Class" table="class"<br style="line-height: normal; " />    catalog="demo"><br style="line-height: normal; " />    <id name="cid" type="java.lang.String"><br style="line-height: normal; " />     <column name="cid" length="32" /><br style="line-height: normal; " />     <generator class="uuid.hex" /><br style="line-height: normal; " />    </id><br style="line-height: normal; " />    <property name="name" type="java.lang.String"><br style="line-height: normal; " />     <column name="cname" length="16" not-null="true" /><br style="line-height: normal; " />    </property><br style="line-height: normal; " />   <br style="line-height: normal; " />    <set name="students" table="student" cascade="save-update"><br style="line-height: normal; " />     <key column="class" /><br style="line-height: normal; " />     <one-to-many class="lcx.vo.Student" /><br style="line-height: normal; " />    </set> <br style="line-height: normal; " /> </class><br style="line-height: normal; " /> </hibernate-mapping></span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">//--------Student綾葷殑浠g爜;*******<br style="line-height: normal; " /> public class Student implements.....<br style="line-height: normal; " /> {<br style="line-height: normal; " /> private sId = "";<br style="line-height: normal; " /> private sName = "";<br style="line-height: normal; " /> private Class class = null;<br style="line-height: normal; " /> // 鐪佺暐瀵瑰簲鐨?geter setter<br style="line-height: normal; " /> }<br style="line-height: normal; " /> // Student.hbm.xml<br style="line-height: normal; " /> <hibernate-mapping><br style="line-height: normal; " /> <class name="lcx.vo.Student" table="student" catalog="demo"><br style="line-height: normal; " />    <id name="cid" type="java.lang.String"><br style="line-height: normal; " />     <column name="sid" length="32" /><br style="line-height: normal; " />     <generator class="uuid.hex" /><br style="line-height: normal; " />    </id><br style="line-height: normal; " />    <many-to-one name="class" <br style="line-height: normal; " />     class="lcx.vo.Class"<br style="line-height: normal; " />     column="class_id" <br style="line-height: normal; " />     not-null="true" <br style="line-height: normal; " />    />   <br style="line-height: normal; " /> </class><br style="line-height: normal; " /> </hibernate-mapping></span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">錛堜竴錛?cascade 鐨勪粙緇嶏細<br style="line-height: normal; " /> 褰揌ibernate鎸佷箙鍖栦竴涓?#8220;涓存椂瀵硅薄(涔熷彨鑷敱鎬佸璞?”鏃訛紝鍦ㄩ粯璁ょ殑鎯呭喌涓?鍗籌細娌℃湁璁劇疆cascade灞炴ф垨cascade=none鏃?錛孒ibernate涓嶄細鑷姩“鎸佷箙鍖栦粬鎵鍏寵仈”鐨勫叾浠栦復鏃跺璞°?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">涓婇潰榪欎簺璇濇槸浠涔堟剰鎬濆憿錛?浠涔堝彨涓嶄細鑷姩 “鎸佷箙鍖?#8221;鍏寵仈鐨勪復鏃跺璞″憿錛?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鐪嬪涓嬩唬鐮侊細</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">// 鍒涘緩涓涓?涓存椂瀵硅薄(涔熷彨鑷敱鎬佸璞? <br style="line-height: normal; " /> // 涔熷氨鏄榪欎釜 class 娌℃湁琚獺ibernate綰沖叆Session緙撳瓨綆$悊銆?br style="line-height: normal; " /> Class class = new Class();<br style="line-height: normal; " /> //class.id 涓鴻嚜鍔ㄧ敓鎴?br style="line-height: normal; " /> class.setName("涓騫寸駭1鐝?);</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">Student stu = new Student();<br style="line-height: normal; " /> //student.id 涓鴻嚜鍔ㄧ敓鎴?br style="line-height: normal; " /> stu.setName("灝忕櫧鍏?);<br style="line-height: normal; " /> stu.setClass(class);</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">// 鍏抽敭灝辨槸榪欓噷銆傘傘?br style="line-height: normal; " /> class.getStudents().add(stu);</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">session.save(class);<br style="line-height: normal; " /> // 鎻愪氦</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">// 娉ㄦ剰: Class.hbm.xml鏂囦歡涓?cascade="save-update"騫朵笖涔熸病鏈夎緗甶nverse灞炴?涔熷氨鏄inverse=false;<br style="line-height: normal; " /> // 姝ゆ椂濡傛灉浣犲紑鍚簡Hibernate鐨勬樉紺篐QL璇彞鍔熻兘錛岄偅涔堟帶鍒跺彴灝嗕細鏄劇ず濡備笅3鏉QL錛?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">//----------------------------------------********<br style="line-height: normal; " /> insert into demo.class (cid, cname) values (66666666666666666666666666666666, 涓騫寸駭1鐝?<br style="line-height: normal; " /> insert into demo.student (sid,sname,class_id) values (8888888888888888811cb2e04c888888, 灝忕櫧鍏? 66666666666666666666666666666666)<br style="line-height: normal; " /> update demo.student set class_id=66666666666666666666666666666666 where sid=8888888888888888811cb2e04c888888<br style="line-height: normal; " /> //----------------------------------------********</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">閭d箞涓轟粈涔堜細鍑虹幇錛岃繖3鏉QL璇彞鍛紝鎴戜滑鏉ヤ竴涓鍒嗘瀽涓涓嬶細</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">絎?鏉QL璇彞:<br style="line-height: normal; " /> 鍏跺疄絎竴鏉QL姣旇緝濂界悊瑙o紝<br style="line-height: normal; " /> 褰撴垜浠皟鐢?session.save(class) 鍚庯紝鍦℉ibernate榪涜鎻愪氦鐨勬椂鍊欙紝<br style="line-height: normal; " /> 浼氬彂鐜?#8220;鏈?#8221;涓鏉?#8220;鏂?#8221;鐨勬暟鎹鎻掑叆(insert)錛屾墍浠ュ氨寰class琛ㄤ腑,鎻掑叆浜嗚繖鏉℃柊鐨刢lass璁板綍銆?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">絎?鏉QL璇彞錛?br style="line-height: normal; " /> 娉ㄦ剰闂灝卞湪榪欓噷錛?br style="line-height: normal; " /> 榪欓噷涓轟粈涔堝張鍑虹幇浜嗕竴鏉nsert璇彞鍛紵鑰屼笖榪樻槸鍚憇tudent琛ㄤ腑鎻掑叆鏁版嵁銆?br style="line-height: normal; " /> 鎴戜滑鍦ㄤ笂闈㈢殑浠g爜涓紝騫舵病鏈夌紪鍐欑被浼?#8220;session.save(student)”榪欐牱鐨勮鍙ュ晩銆?br style="line-height: normal; " /> 榪欐槸涓轟粈涔堝憿錛?br style="line-height: normal; " /> 鍏跺疄鍘熷洜錛屾槸榪欎箞鍥炰簨錛氬洜涓烘垜浠湪class绔紝璁劇疆浜?綰ц仈鏇存柊"(鍗?cascade="save-update")錛?br style="line-height: normal; " /> 涔熷氨鏄錛屽綋Hibernate鍦ㄥ悜class琛ㄤ腑鎻掑叆“鏂?#8221;瀵硅薄璁板綍鏃訛紝浼氭鏌?#8220;Class瀵硅薄”鎵鍏寵仈鐨勫睘鎬?灝辨槸<set>瀵瑰簲鐨勫睘鎬?錛屾槸鍚﹀彂鐢熻繃鍙樺寲錛屽鏋滃彂鐢熶簡鍙樺寲錛屽氨鎸夌収“綰ц仈灞炴?cascade)”鎵璁懼畾鐨勫唴瀹?br style="line-height: normal; " /> 榪涜鎿嶄綔銆?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">涓婇潰璁茬殑榪欏彞璇濆埌搴曟槸浠涔堟剰鎬濆憿錛?br style="line-height: normal; " /> 鐢ㄤ綘浠?#8220;浜?#8221;璇濊錛屽氨鏄細<br style="line-height: normal; " /> 鍥犱負璋冪敤浜?class.getStudents().add(stu);<br style="line-height: normal; " /> 鎵浠ワ紝鍦℉ibernate鍦ㄨ繘琛屾彃鍏?class瀵硅薄鐨勬椂鍊欙紝鍙戠幇class瀵硅薄錛屾墍鍏寵仈鐨勯泦鍚堜腑錛屾湁涓鏉?br style="line-height: normal; " /> “鑷敱鎬?#8221;鐨勫璞★紝鑰屽張鍥犱負class绔緗簡“綰ц仈灞炴ascade”錛屾墍浠ワ紝鍦ㄦ彃鍏ヨ繖鏉?“鏂癱lass瀵硅薄”鏃訛紝涔熶竴鍚屾妸浠栧唴閮ㄧ殑閭d簺錛岃繕灞炰簬“鑷敱鎬?#8221;鐨勫叾浠栧璞★紝涔熶竴鍚屾彃鍏ュ埌錛屼粬浠墍瀵瑰簲鐨勮〃涓幓浜嗐?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">榪樻槸涓嶆槑鐧界殑璇濄傘傘傚彲浠ョ湅鐪嬨傚瓩鍗惔鐨勩婄簿閫欻ibernate銆嬶紝鍦ㄤ功涓婄殑絎?49欏墊湁銆?br style="line-height: normal; " /> 浣嗘槸鍏充簬inverse鐨勪粙緇嶃傘傘傚啓鐨勫氨鏈変簺涔﹂潰鍖栦簡錛屽鏋滆鏂囦笉濂界殑璇濄傘傘傚氨闅炬噦鍜瘇</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">絎?鏉QL璇彞錛?br style="line-height: normal; " /> 絎笁鏉QL璇彞鏄竴鏉pdate璇彞錛屾槸涓嶆槸瑙夊緱錛屽緢鑾悕鍏跺銆傘傘傘?br style="line-height: normal; " /> Hibernate澶ц剳榪涙按浜嗗惂錛屾庝箞鍚冮ケ浜嗘拺寰楋紝閲嶅鏇存柊璁板綍鍟婂晩鍟婂晩鍟?br style="line-height: normal; " /> 鍋囧錛氭垜浠妸 class绔殑閰嶇疆鏂囨。涓殑 invser灞炴ц緗負true(鍗籌細inverse=true)<br style="line-height: normal; " /> 鍦ㄦ墽琛屼笂闈㈢殑紼嬪簭錛屽彂鐜幫紝灝卞彉鎴?鏉nsert璇彞鍟︺傘傘傘傘?update娌″暒銆傘傘?<br style="line-height: normal; " /> 鐪嬫潵絎笁鏉$殑update璇彞鍜宨nverse鏈夌潃瀵嗗垏鐨勫叧緋伙紙浠栦袱鏈変竴鑵縹錛夈?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鎵浠ユ垜浠笅杈癸紝灝辨潵浠嬬粛涓涓媔nverse灞炴?</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">褰撹皟鐢?Class.getStudents().add(stu)鏂規硶錛岃繘琛屾坊鍔犳搷浣滄椂錛?nbsp;<br style="line-height: normal; " /> (鍗籌細鍚?"榪欎釜Class瀵硅薄"鎵灞炵殑“闆嗗悎 (涔熷氨鏄皟鐢╣etStudents鏂規硶鎵榪斿洖鐨勯偅涓猄et闆嗗悎)”涓坊鍔犱竴涓猄tudent(鍗?add(stu))錛屼篃灝辨槸璇達紝榪欎釜“鏂?#8221;娣誨姞鐨凷tudent瀵硅薄(stu)錛?nbsp;<br style="line-height: normal; " /> 浠栫殑Student.class_id瀛楁“蹇呴』”錛岃絳変簬“琚坊鍔犳柟Class”鐨勪富閿?鍗?Class.cid)銆?nbsp;<br style="line-height: normal; " /> 浠?#8220;鏁版嵁搴?#8221;灞傞潰鏉ヨ錛屼篃灝辨槸璇達紝榪欎釜“鏂?#8221;娣誨姞鐨?#8220;Student”鐨刢lass_id瀛楁錛屽繀欏昏涓?#8220;Class”鐨刢id瀛楁錛屽瓨鍦?涓誨閿叧鑱?銆?</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">姝e洜涓哄姝わ細鎵浠ibernate“鎬?#8221; 鍦ㄨ繘琛?"Class.getStudents().add(stu)" 榪欐牱鐨勬搷浣滄椂錛?nbsp;<br style="line-height: normal; " /> 鍑虹幇鎰忓鎯呭喌(濡? stu.getClass=null錛屽嵆錛歴tu娌℃湁鎵灞炵彮綰?錛?br style="line-height: normal; " /> 鍗?#8220;娣誨姞鏂?#8221;(Student)涓?#8220;琚坊鍔犳柟”(Class)錛屽瓨鍦?#8220;澶栭敭”涓嶄竴鑷寸殑鎯呭喌鍙戠敓銆?nbsp;<br style="line-height: normal; " /> 鎵浠ュ氨鍑虹幇浜?閭f潯澶氫綑鐨剈pdate璇彞銆傚嵆錛歰ne-to-many錛圕lass绔級涓誨姩鍘葷淮鎶hild.Class_id <br style="line-height: normal; " /> 鎵浠ュ氨鏄錛孒ibernate鎬曞嚭閿欙紝灝辯粰浣犲鎵ц涓嬈℃棤鐢ㄧ殑鏇存柊璇彞錛屼互淇濊瘉 add 鍒?Class“闆嗗悎”涓殑鎵鏈塖tudent<br style="line-height: normal; " /> 閮芥槸瑕佷笌Class鏈夊閿叧鑱旂殑銆?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鐢ㄦ櫘閫氳瘽璇村氨鏄?<br style="line-height: normal; " /> 涓騫?鐝?getStudents().add(灝忕櫧鍏?;<br style="line-height: normal; " /> 涓騫?鐝?getStudents().add(澶х櫧鍏?;</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">涔熷氨鏄鐜板湪涓嶇鏄?灝忕櫧鍏?榪樻槸 澶х櫧鍏?nbsp;<br style="line-height: normal; " /> 濡傛灉浠栦滑錛岀洰鍓嶈繕娌℃湁鑷繁鐨勭彮綰х殑璇濓紝<br style="line-height: normal; " /> 涓騫?鐝殑鐝富浠誨氨浼氫富鍔ㄩ個璇蜂粬浠垚涓轟竴騫?鐝殑鍚屽鍟銆?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">涔熷氨鏄 涓騫?鐝殑鐝富浠?涓誨姩閭璇?鍚屽錛岃屼笉鏄?鍚屽鑷繁鏉~~ 鎵浠ユ晥鐜囦篃闄嶄綆浜嗐傘傘傘?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鎵浠ユ垜浠竴鑸妸 涓瀵瑰绔?invser璁劇疆涓簍rue錛屽嵆錛氫笉璁╀富鎺х鍘葷淮鎶や富閿叧鑱旓紝<br style="line-height: normal; " /> 錛堝嵆錛氳鍚屽鑷繁鍘繪壘鐝駭錛?br style="line-height: normal; " /> 璇寸櫧浜嗭紝灝辨槸錛宱ne-to-many绔笉鐢ㄥ幓綆$悊 “鏂版坊鍔犲璞?#8221; 鐨勪富澶栭敭綰︽潫闂銆?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鎶妎ne-to-many绔紙鍗?class绔?鐨刬nvser璁劇疆涓簍rue<br style="line-height: normal; " /> (鍗籌細姣忔鍚慶lass.getStudents榪欎釜闆嗗悎涓坊鍔?student鏃訛紝涓嶅幓涓誨姩update瀵瑰簲鐨勫閿?錛?br style="line-height: normal; " /> 鑰屾槸鍦╯tudent绔幓鎵嬪姩璁劇疆<br style="line-height: normal; " /> 渚嬪錛?br style="line-height: normal; " /> student.setClass(class);<br style="line-height: normal; " /> session.save(student);<br style="line-height: normal; " /> 榪欐牱鎵嬪姩璁劇疆 student涓巆lass鍏寵仈鍟︺傘傘傘?br style="line-height: normal; " /> 鎵浠ヤ笂闈㈢殑紼嬪簭“鏈濂?#8221;榪樻槸鍐欐垚榪欐牱錛?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">Class class = new Class();<br style="line-height: normal; " /> class.setName("涓騫寸駭1鐝?);<br style="line-height: normal; " /> session.save(class);</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">Student stu = new Student();<br style="line-height: normal; " /> stu.setName("灝忕櫧鍏?);<br style="line-height: normal; " /> stu.setClass(class);<br style="line-height: normal; " /> session.save(class);</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">/*<br style="line-height: normal; " /> 姝ゆ椂鍚慶lass闆嗗悎add鍐呭錛屼笉浼氳繘琛屾暟鎹簱鎿嶄綔(update)銆?br style="line-height: normal; " /> “鏇存柊”鐨勫彧鏄痵ession緙撳瓨涓紝鏁版嵁闀滃儚銆?br style="line-height: normal; " /> 榪欐牱鍋氱殑濂藉鏄細涓嶄粎鍑忓皯浜唘pdate璇彞錛?br style="line-height: normal; " /> 鑰屼笖錛屽悓鏃朵篃鏇存柊浜唖ession緙撳瓨銆?br style="line-height: normal; " /> ------------------------<br style="line-height: normal; " /> 鑰屽湪鍘熸潵:<br style="line-height: normal; " /> one-to-many绔痠nverse=false鏃訛紝铏界劧涔熸洿鏂皊eesion緙撳瓨涓殑class闆嗗悎錛?br style="line-height: normal; " /> 浣嗘槸鏈夊嵈鍙堝浣檜pdate<br style="line-height: normal; " /> */<br style="line-height: normal; " /> class.getStudents().add(stu);<br style="line-height: normal; " /> // 鎻愪氦</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鎬葷粨:<br style="line-height: normal; " /> 褰搃nverse=false 騫朵笖鍚憃ne-to-many绔殑鍏寵仈闆嗗悎錛屾坊鍔?#8220;鏂板璞?鍗? 鑷敱鎬佸璞?” 鏃訛紝<br style="line-height: normal; " /> Hibernate灝變細鑷姩錛屽幓update閭?#8220;涓垰鍒氬埌鏉ョ殑” “鑷敱鎬佸璞?#8221;鐨勫閿?br style="line-height: normal; " /> 錛堝鏋滀綘鍚戯紝one-to-many绔坊鐨勯泦鍚堜腑錛宎dd涓涓?#8220;宸茬粡鎸佷箙鍖栦簡鐨勫璞?#8221;錛岄偅灝變笉浼氬嚭鐜皍pdate浜?鍥犱負宸茬粡鎸佷箙鍖栬繃浜?錛岄櫎闈烇紝浣犲幓 鏇存敼“閭d釜鎸佷箙鍖栧璞?#8221;鎵瀵瑰簲鐨勫閿傘傘傞偅鏍風殑璇濄傘傘傚懙鍛靛懙~~~<br style="line-height: normal; " /> 浣犲彲浠ヨ瘯涓璇曪紝搴旇涓嶄細鎶ラ敊錛屼綘鍙互褰撳仛緇冧範鍘誨仛涓涓嬶紝鍔犳繁cascade鍜宨nverse榪欎袱涓睘鎬х殑鐞嗚В錛?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><br style="line-height: normal; " /> <span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">// 濡傛灉鐪嬫噦浜嗕笂闈㈢殑鍐呭銆傛潵鐪嬩竴涓嬶紝涓嬮潰鐨勪笢瑗褲?br style="line-height: normal; " /> 鍋囧錛屽皢one-to-many绔?鍗?Class绔?鐨?hbm.xml 鏂囨。涓殑cascade縐婚櫎鎺?鎴栨妸cascade="none"銆?br style="line-height: normal; " /> 閭d箞涓婇潰鐨勪唬鐮佷細鍑虹幇浠涔堟儏鍐靛憿銆?br style="line-height: normal; " /> 緇撴灉浼氬嚭鐜?鏉QL錛屽拰涓鍫咵xception</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">insert into demo.class (cid, cname) values (66666666666666666666666666666666, 涓騫寸駭1鐝?<br style="line-height: normal; " /> update demo.student set class_id=66666666666666666666666666666666 where sid=8888888888888888811cb2e04c888888<br style="line-height: normal; " /> Hibernate Exceptinon......................................</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">鐩告瘮杈僣ascade琚緗?save-update"鐨勬椂鍊欙紝緙哄皯浜?鏉?insert璇彞錛岃屼笖涔熷浜嗕竴浜汦xception銆?/span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">閭d箞錛屽埌搴曟槸灝戜簡鍝?鏉nsert璇彞鍛紵<br style="line-height: normal; " /> 灝辨槸榪欐潯錛?br style="line-height: normal; " /> insert into demo.student (sid,sname,class_id) values (8888888888888888811cb2e04c888888, 灝忕櫧鍏? 66666666666666666666666666666666)</span></span></span></span></span></span></p> <p style="line-height: normal; color: #666666; font-family: Arial; font-size: 12px; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 14pt; "><span style="line-height: normal; font-size: 10pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 12pt; "><span style="line-height: normal; font-size: 10pt; ">涔嬫墍浠ヤ細鍑虹幇錛岃繖鏍風殑鐜拌薄錛屾兂蹇呮偍宸茬粡鏃╁氨鐪嬪嚭鏉ヤ簡銆?br style="line-height: normal; " /> 鍥犱負錛屾垜娌℃湁璁劇疆Class绔殑Cascade錛屾墍浠ュ湪save(class)鐨勬椂鍊欙紝騫舵病鏈夎嚜鍔ㄥ皢鍏舵墍鍏寵仈鐨?#8220;鑷敱鎬佸璞?#8221;榪涜鎸佷箙鍖栨搷浣溿?br style="line-height: normal; " /> 鐒惰岋紝鍙堝洜涓?Class绔殑inverse=false錛屾墍浠ワ紝Class浼氳嚜鍔ㄥ幓緇存寔錛岄偅涓?“鏂版潵鐨剆tudent” 鐨勫閿?br style="line-height: normal; " /> 鎵浠ヤ細鍑虹幇錛屾病鏈塱nsert灝辮update鍟︺傘傘傘?br style="line-height: normal; " /> 鐒跺悗鍦ㄥ氨鏄疎xception浜?/span></span></span></span></span></span></p> <img src ="http://www.tkk7.com/AstroQi/aggbug/348777.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/AstroQi/" target="_blank">Astro.Qi</a> 2011-04-22 10:47 <a href="http://www.tkk7.com/AstroQi/archive/2011/04/22/348777.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Hibernate鑷畾涔夎〃鍗曞畬鍏ㄨВ鍐蟲柟妗?鏃犻渶閲嶇疆SessionFactory)http://www.tkk7.com/AstroQi/archive/2009/10/26/299764.htmlAstro.QiAstro.QiMon, 26 Oct 2009 05:16:00 GMThttp://www.tkk7.com/AstroQi/archive/2009/10/26/299764.htmlhttp://www.tkk7.com/AstroQi/comments/299764.htmlhttp://www.tkk7.com/AstroQi/archive/2009/10/26/299764.html#Feedback1http://www.tkk7.com/AstroQi/comments/commentRss/299764.htmlhttp://www.tkk7.com/AstroQi/services/trackbacks/299764.html闃呰鍏ㄦ枃

Astro.Qi 2009-10-26 13:16 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 免费无码黄网站在线观看| 免费在线观看a级毛片| 国内精品乱码卡1卡2卡3免费| 成人黄软件网18免费下载成人黄18免费视频 | 中文字幕一区二区三区免费视频| 日韩av无码久久精品免费| 国产成人综合久久精品免费| 亚洲国产成人久久综合一 | 亚洲妇女无套内射精| 99久久婷婷免费国产综合精品| 国产精品视频免费一区二区| 狠狠亚洲狠狠欧洲2019| 亚洲人成未满十八禁网站| 四虎成人精品永久免费AV| 免费人成无码大片在线观看| 色吊丝免费观看网站| AA免费观看的1000部电影| 亚洲AV无码乱码国产麻豆穿越| 亚洲成在人线在线播放无码| 国产一区二区视频免费| 亚洲一区二区三区成人网站 | 国产一级a毛一级a看免费视频| 日韩一卡2卡3卡4卡新区亚洲 | 最新欧洲大片免费在线| 日本亚洲欧美色视频在线播放| 国产精品视频免费| 亚洲av永久无码精品秋霞电影影院| 久久久久国产精品免费看| 亚洲1234区乱码| 91精品视频在线免费观看| 亚洲AV无码久久精品成人| 18禁美女黄网站色大片免费观看| 亚洲精品午夜无码电影网| 产传媒61国产免费| 国产一区二区三区无码免费| 国产精品福利片免费看| 亚洲日韩中文字幕日韩在线 | WWW国产成人免费观看视频| 亚洲精品国产成人片| 久久99九九国产免费看小说| 国产一区二区三区亚洲综合|