re: 申請團隊Blog Sheldon Sun 2006-10-20 16:37
Name: ark
Chinese name: 力網(wǎng)狂瀾
Introduction: Team work and inproving is the terminal goal, 跟我混吧, 你最有前途
Member: sheldonsun
thanks
@asdf
不怪我啊, 我粘貼過來就這樣了。。。 ……^_^
re: Hibernate之緩存 Sheldon Sun 2006-08-30 08:31
不能進行批量更新和刪除: UPDATE AGE = AGE +1 FROM PERSON WHERE AGE >20
則其會取出所有滿足條件的PERSON的信息, 然后每條進行一次更新操作, 執(zhí)行很多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.
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