我的評(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)論排行榜

          主站蜘蛛池模板: 闵行区| 特克斯县| 肃南| 绥化市| 通城县| 湘阴县| 靖江市| 翁牛特旗| 台东市| 淅川县| 丘北县| 南安市| 梧州市| 礼泉县| 固镇县| 那坡县| 黎川县| 杨浦区| 阳曲县| 时尚| 乌拉特前旗| 阳原县| 东明县| 休宁县| 临夏市| 贞丰县| 南溪县| 慈溪市| 镇远县| 兴安盟| 于都县| 旺苍县| 抚松县| 兴安县| 稷山县| 沅江市| 枝江市| 定南县| 淮南市| 靖宇县| 沾化县|