VIRGIN FOREST OF JAVA
不要埋头苦干,要学习,学习,再学习。。。。。
powered by R.Zeus

                      if there are more than two server run with the same system code
            and call the save method at the same time ,it will be result of hibernate
            error!because hibernate get the max id for ganerator and store it in
            cache for next time using.so one server will get the expired id if another
            server change the database following.
            befroe save object,hibernate will excute this sql after the server start up once:
             Hibernate: select max(ID) from TB_LOG
            TB_LOG is my log table.

posted on 2006-10-20 13:35 R.Zeus 阅读(355) 评论(0)  编辑  收藏 所属分类: HibernateSPRINGTOMCAT / RESIN

只有注册用户登录后才能发表评论。


网站导航: