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) 编辑 收藏 所属分类:
Hibernate 、
SPRING 、
TOMCAT / RESIN