我的评论

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
@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
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿(3)

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜