Hibernate: How to fix “identifier of an instance altered from X to Y”?

后端 未结 17 2378
org.hibernate.HibernateException: identifier of an instance 
of org.cometd.hibernate.User altered from 12 to 3

in fact, my user table

17条回答
  •  [愿得一人]
    2020-12-01 07:36

    Faced the same Issue. I had an assosciation between 2 beans. In bean A I had defined the variable type as Integer and in bean B I had defined the same variable as Long. I changed both of them to Integer. This solved my issue.

提交回复
热议问题