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

后端 未结 17 2422
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:48

    In my case, the PK Field in hbm.xml was of type "integer" but in bean code it was long.

提交回复
热议问题