hibernate saveorupdate方法只有更新有效果,保存没有效果 转自:https://blog.csdn.net/KAIXINLUOYE/article/details/72821014 单主键生成策略由native改成assigned后,问题解决。