生态人

关注

hibernate 解决 org.hibernate.StaleStateException: Batch update returned unexpected

生态人

关注

阅读 72

2022-08-18

 

 

这是因为没有设置要更新的主键导致的,只要设置了要更新的主键就能更新成功(没有主键当然不能更新)

 



相关推荐

爱奔跑的读书者

hibernate 解决 java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration

爱奔跑的读书者 72 0 0

Sikj_6590

hibernate解决延迟加载 [main] ERROR org.hibernate.LazyInitializationException - could n

Sikj_6590 56 0 0

爱做梦的老巫婆

org.hibernate.LazyInitializationException

爱做梦的老巫婆 78 0 0

Alex富贵

org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType

Alex富贵 111 0 0

hwwjian

hibernate框架学习(keep update)

hwwjian 56 0 0

双井暮色

Hibernate_org.hibernate.hql.ast.QuerySyntaxException: Path expected for join

双井暮色 65 0 0

践行数据分析

hibernate 关于session的update方法

践行数据分析 110 0 0

烟中雯城

Hibernate异常总结:org.hibernate.exception.SQLGrammarException: could not execute statement

烟中雯城 135 0 0

林肯公园_97cc

mybatis和hibernate的区别(keep update)

林肯公园_97cc 101 0 0

霸姨

Caused by: org.hibernate.AssertionFailure: collection owner not associated with

霸姨 59 0 0

精彩评论(0)

0 0 举报