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
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.
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