我的評(píng)論

          re: 申請(qǐng)團(tuán)隊(duì)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
          Good boy
          @asdf
          不怪我啊, 我粘貼過(guò)來(lái)就這樣了。。。 ……^_^
          re: Hibernate之緩存 Sheldon Sun 2006-08-30 08:31  
          不能進(jìn)行批量更新和刪除: UPDATE AGE = AGE +1 FROM PERSON WHERE AGE >20

          則其會(huì)取出所有滿(mǎn)足條件的PERSON的信息, 然后每條進(jìn)行一次更新操作, 執(zhí)行很多SELECT語(yǔ)句。DeleteK語(yǔ)句也是一樣。

          解決緩存方法一: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
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 儋州市| 淳化县| 海阳市| 崇信县| 密云县| 醴陵市| 祁阳县| 北辰区| 枣庄市| 洪洞县| 高密市| 乐东| 梅河口市| 北辰区| 依兰县| 遂平县| 横山县| 渝北区| 易门县| 武功县| 阳朔县| 荣昌县| 太康县| 普安县| 加查县| 宽城| 湄潭县| 壤塘县| 杭州市| 台东市| 博白县| 东阳市| 桦甸市| 多伦县| 唐海县| 上栗县| 贡觉县| 阜南县| 南阳市| 屏山县| 鸡泽县|