I face this problem when I update one of the database table fields:

我更新其中一个数据库表字段时遇到此问题:

org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction"

1 个解决方案

#1


This may be happening due to number of reasons. But one of the common causes for this problem is to forget annotating one of the methods used in update process as @Transactional. Can this be the case by any chance?

这可能由于多种原因而发生。但是这个问题的常见原因之一是忘记将更新过程中使用的一种方法注释为@Transactional。任何机会都可以这样吗?

更多相关文章

  1. VC6.0添加注释快捷键,类似Eclispe如此方便

随机推荐

  1. 如何在 Android(安卓)程序中禁止屏幕旋转
  2. 面试java不知道Vector?恐怕要重在参与了
  3. 操作系统面试题汇总(找工作必备)
  4. 使用Android中sqlite表的全文检索
  5. Babel快速指南
  6. [Android]笔记10-单选按钮和复选框的功能
  7. Android在标准linux基础上对休眠唤醒的实
  8. ES2016
  9. Android(安卓)使用Post方式提交数据
  10. Android(安卓)如何建立AIDL