锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲午夜精品,久久久久亚洲AV片无码下载蜜桃 ,亚洲首页国产精品丝袜http://www.tkk7.com/beijing2008/鏄夋嫨浣犵埍鐨勪漢榪樻槸鐖變綘鐨勪漢?zh-cnSat, 10 May 2025 10:58:59 GMTSat, 10 May 2025 10:58:59 GMT60鎬蹇電綏綰沖皵澶?浜?http://www.tkk7.com/beijing2008/archive/2010/06/22/324107.html.Sun.SunMon, 21 Jun 2010 17:38:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/06/22/324107.htmlhttp://www.tkk7.com/beijing2008/comments/324107.htmlhttp://www.tkk7.com/beijing2008/archive/2010/06/22/324107.html#Feedback2http://www.tkk7.com/beijing2008/comments/commentRss/324107.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/324107.html闃呰鍏ㄦ枃

.Sun 2010-06-22 01:38 鍙戣〃璇勮
]]>
鎬蹇電綏綰沖皵澶?/title><link>http://www.tkk7.com/beijing2008/archive/2010/06/22/324106.html</link><dc:creator>.Sun</dc:creator><author>.Sun</author><pubDate>Mon, 21 Jun 2010 17:34:00 GMT</pubDate><guid>http://www.tkk7.com/beijing2008/archive/2010/06/22/324106.html</guid><wfw:comment>http://www.tkk7.com/beijing2008/comments/324106.html</wfw:comment><comments>http://www.tkk7.com/beijing2008/archive/2010/06/22/324106.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/beijing2008/comments/commentRss/324106.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/beijing2008/services/trackbacks/324106.html</trackback:ping><description><![CDATA[     鎽樿: 鏉ュ惂錛岀綏綰沖皵澶氾紒 <br>鏃犺鏃跺厜嫻侀濆灝?<br>  <a href='http://www.tkk7.com/beijing2008/archive/2010/06/22/324106.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/beijing2008/aggbug/324106.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/beijing2008/" target="_blank">.Sun</a> 2010-06-22 01:34 <a href="http://www.tkk7.com/beijing2008/archive/2010/06/22/324106.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏃犻http://www.tkk7.com/beijing2008/archive/2010/06/20/324006.html.Sun.SunSun, 20 Jun 2010 09:43:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/06/20/324006.htmlhttp://www.tkk7.com/beijing2008/comments/324006.htmlhttp://www.tkk7.com/beijing2008/archive/2010/06/20/324006.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/324006.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/324006.html鍩庡競鐏伀浣曟涓囧
閭f槦鏄熺偣鐐圭殑鍏変寒
鏄犺‖椋庨洦鍋ョ杞葷泩鐨勮垶姝?br /> 榪介愯嚜鐢卞艦楠哥殑鏀炬氮
鑰屽亸榪滀埂鏉戞矇瀵傚湪鑷劧涓?br /> 鍙湁涓鎭井寮辯伅褰卞湪娓呴涓憞鏅?br /> 絳夊緟甯屽唨鐨勫啀鐢?br /> 娓存湜鍐掑嚭鎷斿湴妤兼埧
浼ら濋殣榪涙ⅵ鐨勫湡澹?br />

.Sun 2010-06-20 17:43 鍙戣〃璇勮
]]>
webService錛歅rovider org.apache.xalan.processor.TransformerFactoryImpl not foundhttp://www.tkk7.com/beijing2008/archive/2010/05/13/320928.html.Sun.SunThu, 13 May 2010 13:28:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/05/13/320928.htmlhttp://www.tkk7.com/beijing2008/comments/320928.htmlhttp://www.tkk7.com/beijing2008/archive/2010/05/13/320928.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/320928.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/320928.htmlwebService欏圭洰
Tomcat5.0.28 + JDK1.5 + xfire1.2.6

欏圭洰浠嶵omcat6.0欏圭洰鎷瘋礉鍥炴潵錛宼omcat6.0榪愯姝e父銆?br /> 闂鍑哄湪Tomcat鐨?br /> \common\endorsed\涓?br /> 鍒犻櫎鎴朼pache緗戠珯涓嬭澆鏇存柊榪欎袱涓猨ar鍗沖彲銆?br />



.Sun 2010-05-13 21:28 鍙戣〃璇勮
]]>
鍏充簬 瀛楄妭鐮佸寮?鎽樿http://www.tkk7.com/beijing2008/archive/2010/05/08/320382.html.Sun.SunSat, 08 May 2010 15:57:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/05/08/320382.htmlhttp://www.tkk7.com/beijing2008/comments/320382.htmlhttp://www.tkk7.com/beijing2008/archive/2010/05/08/320382.html#Feedback1http://www.tkk7.com/beijing2008/comments/commentRss/320382.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/320382.htmlJPOX requires that all classes that are persisted implement PersistenceCapable, an interface defined by JDO. Why should we do this, Hibernate/TopLink dont need it ?. Well thats a simple question really

  • JPOX uses this PersistenceCapable interface, and adds it using bytecode enhancement techniques so that you never need to actually change your classes. This means that you get transparent persistence, and your classes always remain your classes. ORM tools that use a mix of reflection and/or proxies are not totally transparent.
  • JPOX' use of PersistenceCapable provides transparent change tracking. When any change is made to an object the change creates a notification to JPOX allowing it to be optimally persisted. ORM tools that dont have access to such change tracking have to use reflection to detect changes. The performance of this process will break down as soon as you read a large number of objects, but modify just a handful, with these tools having to compare all object states for modification at transaction commit time.

In a JDO-enabled application there are 3 categories of classes. These are PersistenceCapable, PersistenceAware and normal classes. The Meta-Data defines which classes fit into these categories. To give an example for JDO, we have 3 classes. The class A is to be persisted in the datastore. The class B directly updates the fields of class A but doesn't need persisting. The class C is not involved in the persistence process. We would define JDO MetaData for these classes like this

1 <class name="A" persistence-modifier="persistence-capable">
2     <field name="myField">
3         
4     </field>
5     
6 </class>
7 <class name="B" persistence-modifier="persistence-aware">
8 </class>


 

So our MetaData is mainly for those classes that are PersistenceCapable and are to be persisted to the datastore (we don't really need the persistence-modifier for thse classes since this is the default). For PersistenceAware classes we simply notate that the class knows about persistence. We don't define MetaData for any class that has no knowledge of persistence.

JDO requires that all classes to be persisted must implement the PersistenceCapable interface . Users could manually do this themselves but this would impose work on them. JDO permits the use of a byte-code enhancer that converts the users normal classes to implement this interface. JPOX provides its own byte-code enhancer (this can be found in the jpox-enhancer.jar). This section describes how to use this enhancer with JPOX. The JPOX enhancer fully implements JDO2 and so is the recommended choice when persisting using the JDO2 API. The enhancement process adds the necessary methods to the users class in order to implement PersistenceCapable.



The example above doesn't show all PersistenceCapable methods, but demonstrates that all added methods and fields are prefixed with "jdo" to distinguish them from the users own methods and fields. Also each persistent field of the class will be given a jdoGetXXX, jdoSetXXX method so that accesses of these fields are intercepted so that JDO can manage their "dirty" state.

The MetaData defines which classes are required to be persisted, and also defines which aspects of persistence each class requires. For example if a class has the detachable attribute set to true, then that class will be enhanced to also implement Detachable



Again, the example above doesn't show all methods added for the Detachable interface but the main thing to know is that the detached state (object id of the datastore object, the version of the datastore object when it was detached, and which fields were detached is stored in "jdoDetachedState"). Please see the JDO spec for more details.

If the MetaData is changed in any way during development, the classes should always be recompiled and re-enhanced afterwards.

Byte-Code Enhancement Myths

Some groups (e.g Hibernate) perpetuated arguments against "byte-code enhancement" saying that it was somehow 'evil'. The most common were :-

  • Slows down the code-test cycle. This is erroneous since you only need to enhance just before test and the provided plugins for Ant, Eclipse and Maven all do the enhancement job automatically and rapidly.
  • Is less "lazy" than the proxy approach since you have to load the object as soon as you get a pointer to it. In a 1-1 relation you have to load the object then since you would cause issues with null pointers otherwise. With 1-N relations you load the elements of the collection/map only when you access them and not the collection/map. Hardly an issue then is it!
  • Fail to detect changes to public fields unless you enhance your client code. Firstly very few people will be writing code with public fields since it is bad practice in an OO design, and secondly, this is why we have "PersistenceAware" classes.

So as you can see, there are no valid reasons against byte-code enhancement, and the pluses are that runtime detection of dirty events on objects is much quicker, hence your persistence layer operates faster without any need for iterative reflection-based checks. The fact is that Hibernate itself also now has a mode whereby you can do bytecode enhancement although not the default mode of Hibernate. So maybe it wasn't so evil after all ?

 



.Sun 2010-05-08 23:57 鍙戣〃璇勮
]]>
MySQL #1005 - Can't create table(...) (errno: 121) http://www.tkk7.com/beijing2008/archive/2010/05/05/320152.html.Sun.SunWed, 05 May 2010 14:30:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/05/05/320152.htmlhttp://www.tkk7.com/beijing2008/comments/320152.htmlhttp://www.tkk7.com/beijing2008/archive/2010/05/05/320152.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/320152.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/320152.html闃呰鍏ㄦ枃

.Sun 2010-05-05 22:30 鍙戣〃璇勮
]]>
鑵捐鎬庝箞鑳借繖鏍鳳紵http://www.tkk7.com/beijing2008/archive/2010/04/22/319069.html.Sun.SunThu, 22 Apr 2010 02:01:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/04/22/319069.htmlhttp://www.tkk7.com/beijing2008/comments/319069.htmlhttp://www.tkk7.com/beijing2008/archive/2010/04/22/319069.html#Feedback3http://www.tkk7.com/beijing2008/comments/commentRss/319069.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/319069.html鑵捐榪欎箞澶х殑浼佷笟錛孮Q絀洪棿鐨勬棩蹇楃珶鐒朵笉鎺у埗澶氭鎻愪氦鐨勯棶棰樸?br /> 涓浗鐨勫叕鍙擱兘榪欎箞嫻簛銆?br /> 灝忓叕鍙鎬負浜嗙敓瀛樿繕鑳界悊瑙c?br /> 鑵捐榪欎箞澶х殑綰蟲柉杈懼厠涓婂競浼佷笟涔熻繖鏍?..



.Sun 2010-04-22 10:01 鍙戣〃璇勮
]]>
鍏充簬struts鍔ㄦ乫orm_DynaActionFormhttp://www.tkk7.com/beijing2008/archive/2010/04/20/318862.html.Sun.SunTue, 20 Apr 2010 07:56:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/04/20/318862.htmlhttp://www.tkk7.com/beijing2008/comments/318862.htmlhttp://www.tkk7.com/beijing2008/archive/2010/04/20/318862.html#Feedback5http://www.tkk7.com/beijing2008/comments/commentRss/318862.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/318862.html浠婂ぉ鏈変漢闂墠鍙拌〃鍗昮orm鍔ㄦ佺敓鎴愶紝鍚庡彴浣跨敤DynaActionForm鎬庝箞鐢紝璇翠簡浠栨病鎳傦紝灝卞啓浜嗕釜渚嬪瓙銆?br />
Action閰嶇疆

<action
      attribute
="testMappingForm"
      input
="/jsp"
      name
="testMappingForm"
      path
="/testMapping"
      scope
="request"
      type
="com.modo.struts.action.TestMappingAction" />


ActionForm閰嶇疆

<form-bean name="testMappingForm" type="org.apache.struts.action.DynaActionForm">
        
<form-property name="fnames" type="java.util.HashMap"></form-property>
    
</form-bean>

璇鋒敞鎰弉ame灞炴э紝榪欎釜灞炴у悗闈㈣鐢ㄥ埌銆?br />

鐒跺悗鏄〉闈ndex.jsp,榪欓噷鍙ā鎷熷姩鎬?/p>

<html:form action="/testMapping.do" method="post">
   
<%
   
for(int i=0;i<5;i++){   
   
%>
           
<html:text property="<%="fnames(name_"+i+")"%>" value="<%="gangye_"+i%>"></html:text><br>
   
<%}%>
   
<br>
   
<html:submit value="Submit Form" />
   
</html:form>

璇鋒敞鎰廻tml:text鐨刾roperty鏍囩銆?br />

index.jsp鏁堟灉濡備笅

鍚庡彴Action

public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        HashMap   hm
=(HashMap)((DynaActionForm)form).get("fnames");
        Iterator it 
= hm.entrySet().iterator();
        Map.Entry entry 
= null;
        
while(it.hasNext()){
            entry  
= (Map.Entry)it.next();
            System.out.println(entry.getKey() 
+ " = " + entry.getValue());
        }
        
return null;
    }


杈撳嚭琛ㄥ崟欏?/p>

name_4 = gangye_4
name_0 
= gangye_0
name_2 
= gangye_2
name_1 
= gangye_1
name_3 
= gangye_3



 



 



.Sun 2010-04-20 15:56 鍙戣〃璇勮
]]>
org.springframework.web.struts.ContextLoaderPlugIn 鍜?org.springframework.web.context.ContextLoaderListenerhttp://www.tkk7.com/beijing2008/archive/2010/04/11/317973.html.Sun.SunSat, 10 Apr 2010 18:24:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/04/11/317973.htmlhttp://www.tkk7.com/beijing2008/comments/317973.htmlhttp://www.tkk7.com/beijing2008/archive/2010/04/11/317973.html#Feedback1http://www.tkk7.com/beijing2008/comments/commentRss/317973.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/317973.htmlorg.springframework.web.struts.ContextLoaderPlugIn 鍜?nbsp;org.springframework.web.context.ContextLoaderListener
鏄鍥懼眰鍔犺澆sping鐨勪袱縐嶆柟寮忋?br style="font-family: " /> 閭d箞榪欎袱縐嶆柟寮忚皝鐨勪紭鍏堢駭楂橈紝浠庡鍣ㄥ姞杞界▼搴︿笂鐪嬶紝鏄痮rg.springframework.web.context.ContextLoaderListener

閭d箞涓柟寮忛兘琚厤緗湪欏圭洰涓紝浼氫嬌鐢ㄥ摢涓竴涓憿錛?br style="font-family: " /> 絳旀鏄痮rg.springframework.web.struts.ContextLoaderPlugIn

褰撶劧濡傛灉浣犱笉闇瑕佸湪瑙嗗浘灞傞噰鐢╨azy鑰岄厤緗畂rg.springframework.orm.hibernate3.support.OpenSessionInViewFilter
閭d箞浣犲彲浠ヤ袱涓兘閰嶇疆銆?br style="font-family: " /> 浣嗗鏋滀綘闇瑕佷嬌鐢紝閭e氨浼氥?br style="font-family: " />
鎴戜滑鐭ラ亾錛屽鍣ㄥ垵濮嬪寲Spring閰嶇疆鏂囦歡鏃訛紝浣跨敤getServletContext().setAttribute鏂規硶key,value鍏ㄥ眬淇濆瓨銆?br style="font-family: " /> 閭d箞褰撲綘浣跨敤OpenSessionInViewFilter鏃訛紝浠栧彇寰楃殑鏄摢涓憿錛?br style="font-family: " />
鍏跺疄OpenSessionInViewFilter鏄痵ping鐨凢ilter,瀹?/span>閲囩敤WebApplicationContextUtils鐨勬柟寮忚幏寰梂ebApplicationContext
錛屼絾瀹冨茍涓嶈兘鍔犺澆鐢眘truts-config.xml鏂囦歡ContextLoaderPlugIn鎻愪緵鍒濆鍖栫殑涓婁笅鏂囥?br />
濡傛灉浣犻渶瑕佸湪瑙嗗浘灞傚姞杞戒竴瀵瑰....絳夊叧鑱斿璞°傞偅涔堝氨浼氭湁
could not initialize proxy - the owning Session was closed
閿欒銆?br /> 鍒版澶勬垜浠湅鍒幫紝sping鍦ㄥ簲鐢ㄧ▼搴忓拰OpenSessionInViewFilter涔嬮棿錛屽姞杞戒簡涓嶅悓鐨勪笂涓嬫枃銆?br /> 鎴戜滑鐭ラ亾OpenSessionInViewFilter涓嬫棤娉曡幏寰桟ontextLoaderPlugIn鍔犺澆鐨勪笂涓嬫枃錛岄偅鎴戜滑鍙互鎺ㄧ畻錛?br /> 搴旂敤紼嬪簭搴旇鍔犺澆浜咰ontextLoaderPlugIn涓婁笅鏂囷紝鑰孫penSessionInViewFilter鍗村姞杞戒簡ContextLoaderListener鐨勪笂涓嬫枃銆?br /> 鎵嶅鑷磋鍥懼眰session鏈夊叧闂殑闂銆?br />
灝濊瘯瑙e喅姝ら棶棰橈紝鑻ヤ綘閰嶇疆浜嗕袱涓紝鍒欏垹闄ontextLoaderPlugIn鐨勫姞杞芥柟寮忋?br /> 鑻ヤ綘鍙厤緗簡ContextLoaderPlugIn鐨勫姞杞芥柟寮忥紝鍒欐敼鎴怌ontextLoaderListener鍔犺澆鏂瑰紡銆?br />
鍘熷垱鏂囩珷錛岃漿杞借娉ㄦ槑鍑哄銆?br /> http://www.tkk7.com/beijing2008/articles/317973.html










.Sun 2010-04-11 02:24 鍙戣〃璇勮
]]>
getHibernateTemplate().save鍜宻uper.getHibernateTemplate().mergehttp://www.tkk7.com/beijing2008/archive/2010/04/10/317924.html.Sun.SunSat, 10 Apr 2010 04:10:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/04/10/317924.htmlhttp://www.tkk7.com/beijing2008/comments/317924.htmlhttp://www.tkk7.com/beijing2008/archive/2010/04/10/317924.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/317924.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/317924.html浠g爜1_save錛?/p>
super.getHibernateTemplate().save(user);
        System.out.println(
"錛?/span>"+user.getId());

杈撳嚭1錛?br />
Hibernate: insert into user (userid, userpwd, userques, userans, usermail, integral, grade, sex, realname) values (?????????)
錛?/span>9



浠g爜2_merge錛?br />
super.getHibernateTemplate().merge(user);
        System.out.println(
"錛?/span>"+user.getId());

杈撳嚭2錛?br />
Hibernate: insert into user (userid, userpwd, userques, userans, usermail, integral, grade, sex, realname) values (?????????)
錛?/span>0


浠g爜3_merge錛?br />
user = (User)super.getHibernateTemplate().merge(user);
        System.out.println(
"錛?/span>"+user.getId());

杈撳嚭3錛?br />
Hibernate: insert into user (userid, userpwd, userques, userans, usermail, integral, grade, sex, realname) values (?????????)
錛?/span>11

褰撴垜浠嬌鐢╩erge鐨勬椂鍊欙紝鎵ц瀹屾垚錛屾垜浠彁渚涚殑瀵硅薄A榪樻槸鑴辯鐘舵侊紝hibernate鎴栬卬ew浜嗕竴涓狟錛屾垨鑰呮绱㈠埌
涓涓寔涔呭璞錛屽茍鎶婃垜浠彁渚涚殑瀵硅薄A鐨勬墍鏈夌殑鍊兼嫹璐濆埌榪欎釜B錛屾墽琛屽畬鎴愬悗B鏄寔涔呯姸鎬侊紝鑰屾垜浠彁渚涚殑A榪樻槸鎵樼鐘舵?br />

緇х畫鐪嬩唬鐮侊細
super.getHibernateTemplate().save(user);
        user.setUserans(
"鏉窞BST");
        System.out.println(
"錛?/span>"+user.getId());
杈撳嚭錛?br />
Hibernate: insert into user (userid, userpwd, userques, userans, usermail, integral, grade, sex, realname) values (?????????)
錛?/span>13
Hibernate: update user set userid
=?, userpwd=?, userques=?, userans=?, usermail=?, integral=?, grade=?, sex=?, realname=? where id=?


super.getHibernateTemplate().merge(user);
        user.setUserans(
"鏉窞BST");
        System.out.println(
"錛?/span>"+user.getId());

-------------------------
Hibernate: insert into user (userid, userpwd, userques, userans, usermail, integral, grade, sex, realname) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
錛?




鍏跺疄錛屾垜浠篃鍙互榪欐牱鏄劇ず淇敼鐘舵併?br />
user = (User)super.getHibernateTemplate().merge(user);
        user.setUserans(
"鏉窞BST");
        System.out.println(
"錛?/span>"+user.getId());

--------------------

Hibernate: insert into user (userid, userpwd, userques, userans, usermail, integral, grade, sex, realname) values (
?????????)
錛?/span>16
Hibernate: update user set userid
=?, userpwd=?, userques=?, userans=?, usermail=?, integral=?, grade=?, sex=?, realname=? where id=?

鍘熷垱鏂囩珷錛岃漿杞借娉ㄦ槑鍑哄銆?/strong>
http://www.tkk7.com/beijing2008/articles/317924.html




.Sun 2010-04-10 12:10 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲欧洲∨国产一区二区三区| 亚洲日本VA午夜在线电影| 1000部拍拍拍18勿入免费视频软件 | 亚洲乱亚洲乱妇24p| 亚洲国产成人久久一区久久| 久久精品国产这里是免费| 亚洲国产成人AV在线播放| 亚洲日韩精品一区二区三区无码 | 精品亚洲一区二区三区在线播放| 无码成A毛片免费| 久久久久久亚洲精品无码| 久久精品国产亚洲AV果冻传媒| 成人奭片免费观看| 韩日电影在线播放免费版| 在线观看亚洲AV每日更新无码| 亚洲综合精品香蕉久久网| 久久精品女人天堂AV免费观看| 中文字幕无线码中文字幕免费| 亚洲中文久久精品无码1| 亚洲人成网77777色在线播放| 在线免费观看视频你懂的| 国产精品免费看久久久| 免费的黄色的网站| 亚洲三级在线观看| 午夜亚洲AV日韩AV无码大全| 国产一级淫片免费播放| 18国产精品白浆在线观看免费 | 久久亚洲春色中文字幕久久久| www国产亚洲精品久久久| 国产桃色在线成免费视频| 国产精品一区二区三区免费| 亚洲色大成网站WWW国产| 亚洲精品午夜视频| 国产亚洲精品xxx| 亚洲一区二区三区无码影院| 免费黄色网址入口| 久久精品免费一区二区喷潮| 一级成人a毛片免费播放| 久久国产免费直播| 免费国产a理论片| 久久亚洲欧美国产精品|