我的評論
re: 申請團隊Blog Sheldon Sun 2006-10-20 16:37
Name: ark
Chinese name: 力網狂瀾
Introduction: Team work and inproving is the terminal goal, 跟我混吧, 你最有前途
Member: sheldonsun
thanks
Chinese name: 力網狂瀾
Introduction: Team work and inproving is the terminal goal, 跟我混吧, 你最有前途
Member: sheldonsun
thanks
re: Domain Object:基于業務行為的分析 Sheldon Sun 2006-10-10 14:21
Good boy
re: 再駁Java消亡論和回應java消亡論的支持者 Sheldon Sun 2006-09-27 16:49
@asdf
不怪我啊, 我粘貼過來就這樣了。。。 ……^_^
不怪我啊, 我粘貼過來就這樣了。。。 ……^_^
re: Hibernate之緩存 Sheldon Sun 2006-08-30 08:31
不能進行批量更新和刪除: UPDATE AGE = AGE +1 FROM PERSON WHERE AGE >20
則其會取出所有滿足條件的PERSON的信息, 然后每條進行一次更新操作, 執行很多SELECT語句。DeleteK語句也是一樣。
解決緩存方法一:For every query string, after executing, call session flush() to run sql, and session evict( object) to delete it from storage.
method 2: use SQL instead batch update and delete, best choice.
則其會取出所有滿足條件的PERSON的信息, 然后每條進行一次更新操作, 執行很多SELECT語句。DeleteK語句也是一樣。
解決緩存方法一:For every query string, after executing, call session flush() to run sql, and session evict( object) to delete it from storage.
method 2: use SQL instead batch update and delete, best choice.
re: Solution that can not find datasource in jboss Sheldon Sun 2006-08-28 12:41
Jboss just bind the datasourc in local jndi namespace, so
you cannot retrieve it out of jboss jvm. If you want that,
you should bind the datasource to the global namespace :
In XX-ds.xml, under <jndi-name>, add this:
<use-java-context>false</use-java-context>
test again ! :)
btw, you must use jboss4.0
you cannot retrieve it out of jboss jvm. If you want that,
you should bind the datasource to the global namespace :
In XX-ds.xml, under <jndi-name>, add this:
<use-java-context>false</use-java-context>
test again ! :)
btw, you must use jboss4.0