java 文件中:
user.setLoginCount(******);
userDao.update(user);映射文件:
user.hbm.xml
<class ********
    dynamic-update="true"  //默认时false/>这样更新的时候就只会更新一列了。