1. 程式人生 > >org.hibernate.HibernateException: identifier of an instance of 實體類的完整類路徑 was altered from X to X.

org.hibernate.HibernateException: identifier of an instance of 實體類的完整類路徑 was altered from X to X.

org.hibernate.HibernateException: identifier of an instance of 實體類的完整類路徑 was altered from X to X.

有一種可能是  上述“實體類的完整類路徑”的類  中  主鍵 的型別與對應配置檔案中的id型別不匹配。

 

例如我的錯誤示範: